Skip to content

Commit

Permalink
3.4.3 (51572)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 30, 2023
1 parent c5c31cf commit d99e0c5
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,7 @@ function PetJournal_UpdateSummonButtonState()

PetJournal.SummonButton:SetEnabled(hasPetID and (C_PetJournal.PetIsSummonable(petID) or needsFanfare));

local active = C_PetJournal.IsCurrentlySummoned(petID);

if hasPetID and active then
if hasPetID and C_PetJournal.IsCurrentlySummoned(petID) then
PetJournal.SummonButton:SetText(PET_DISMISS);
elseif needsFanfare then
PetJournal.SummonButton:SetText(UNWRAP);
Expand Down Expand Up @@ -809,7 +807,7 @@ function PetJournalSummonButton_OnEnter(self)
end

function PetJournalSummonButton_OnClick(self)
local active = C_PetJournal.IsCurrentlySummoned(PetJournalPetCard.petID);
local active = PetJournalPetCard.petID and C_PetJournal.IsCurrentlySummoned(PetJournalPetCard.petID);
if ( active ) then
C_PetJournal.DismissSummonedPet(PetJournalPetCard.petID);
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
Expand Down

0 comments on commit d99e0c5

Please sign in to comment.