Quantcast

Not nil as string or number

Darth Predator [06-15-17 - 12:06]
Not nil as string or number
This fixes #477
Filename
ElvUI_SLE/modules/bags/artifactpower.lua
diff --git a/ElvUI_SLE/modules/bags/artifactpower.lua b/ElvUI_SLE/modules/bags/artifactpower.lua
index e384d93..fc176cd 100644
--- a/ElvUI_SLE/modules/bags/artifactpower.lua
+++ b/ElvUI_SLE/modules/bags/artifactpower.lua
@@ -35,7 +35,7 @@ local function SlotUpdate(self, bagID, slotID)
 			if (ID and slotLink) then
 				local arcanePower = DB:GetAPForItem(slotLink)
 				if E.db.sle.bags.artifactPower.short and arcanePower then arcanePower = E:ShortValue(arcanePower) end
-				if arcanePower ~= "0" then frame.artifactpowerinfo:SetText(arcanePower) end
+				if (arcanePower ~= "0" and arcanePower ~= 0) then frame.artifactpowerinfo:SetText(arcanePower) end
 			end
 		end
 	elseif not E.db.sle.bags.artifactPower.enable and frame.artifactpowerinfo then