Make sure Valor Points always display a number instead of a blank.
This commit is contained in:
parent
0f35058848
commit
472a26ec14
1 changed files with 5 additions and 2 deletions
|
@ -95,11 +95,11 @@ function core:UpdateChores()
|
||||||
core:ResetInstances()
|
core:ResetInstances()
|
||||||
core:ResetValorPoints()
|
core:ResetValorPoints()
|
||||||
|
|
||||||
local _,_,_,earnedThisWeek = GetCurrencyInfo(396)
|
|
||||||
local realm = GetRealmName()
|
local realm = GetRealmName()
|
||||||
local name = UnitName('player')
|
local name = UnitName('player')
|
||||||
|
|
||||||
local vpReset = core:GetNextVPReset()
|
local vpReset = core:GetNextVPReset()
|
||||||
|
local _,_,_,earnedThisWeek = GetCurrencyInfo(396)
|
||||||
|
|
||||||
--store Valor Points
|
--store Valor Points
|
||||||
if vpReset ~= nil then
|
if vpReset ~= nil then
|
||||||
|
@ -231,6 +231,9 @@ local function anchor_OnEnter(self)
|
||||||
|
|
||||||
local valorPoints, valorPointColor
|
local valorPoints, valorPointColor
|
||||||
valorPoints = self.db.global[realm][name].valorPoints.points
|
valorPoints = self.db.global[realm][name].valorPoints.points
|
||||||
|
if valorPoints == nil then
|
||||||
|
valorPoints = 0
|
||||||
|
end
|
||||||
if valorPoints == 980 then
|
if valorPoints == 980 then
|
||||||
valorPointColor = flagColors['red']
|
valorPointColor = flagColors['red']
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue