Skip to content

Commit b598ccc

Browse files
committed
Fixed an error when clicking the Open the Mythic+ UI button in the settings, when you're too low level to have access to that UI
1 parent 6d04b22 commit b598ccc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SharedUtil.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ end
8686
function Util:ToggleMythicPlusFrame()
8787
local shouldShow = not (ChallengesFrame and ChallengesFrame:IsVisible());
8888
PVEFrame_ToggleFrame('ChallengesFrame');
89-
if shouldShow == ChallengesFrame:IsVisible() then return; end
89+
if not ChallengesFrame or shouldShow == ChallengesFrame:IsVisible() then return; end
9090

9191
PVEFrame:SetShown(shouldShow);
9292
if PVEFrame:GetNumPoints() == 0 then

0 commit comments

Comments
 (0)