Skip to content

Commit

Permalink
Update CallingsBoard.lua
Browse files Browse the repository at this point in the history
Removed check for GetBuildInfo() < "9.0.5" as it fails for 10.0
  • Loading branch information
cpuritscher authored Nov 3, 2022
1 parent e20395a commit e47d653
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Callings/CallingsBoard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -382,13 +382,9 @@ function WQT_CallingsBoardDisplayMixin:OnEnter()

if (self.calling.isLockedToday) then
local daysUntilString = "";
if (GetBuildInfo() < "9.0.5") then
daysUntilString = self.calling:GetDaysUntilNextString();
else
local days = MAX_CALLINGS - self.calling.index + 1;
daysUntilString = _G["BOUNTY_BOARD_NO_CALLINGS_DAYS_" .. days] or BOUNTY_BOARD_NO_CALLINGS_DAYS_1;
end

local days = MAX_CALLINGS - self.calling.index + 1;
daysUntilString = _G["BOUNTY_BOARD_NO_CALLINGS_DAYS_" .. days] or BOUNTY_BOARD_NO_CALLINGS_DAYS_1;

GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(daysUntilString, HIGHLIGHT_FONT_COLOR:GetRGB());
GameTooltip:Show();
Expand Down

0 comments on commit e47d653

Please sign in to comment.