Skip to content

Commit

Permalink
Fixed Currency statistic text not updating when your currency amounts…
Browse files Browse the repository at this point in the history
… change
  • Loading branch information
ImUnicke committed Nov 5, 2024
1 parent 6cf579d commit 193b7b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Classes/Currency.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ app.CreateCurrencyClass = app.CreateClass(CLASS, KEY, {
return merge.isCost
end,
statistic = function(t)
local info = t.info
local info = C_CurrencyInfo_GetCurrencyInfo(t.currencyID)
if not info then return end
local quantity, maxQuantity = t.info.quantity, t.info.maxQuantity
local quantity, maxQuantity = info.quantity, info.maxQuantity
if maxQuantity and maxQuantity > 0 then
return tostring(quantity) .. " / " .. tostring(maxQuantity)
elseif quantity and quantity > 0 then
Expand Down

0 comments on commit 193b7b1

Please sign in to comment.