Guard unusable bag refresh against the bank frame not existing yet

This commit is contained in:
Brues
2026-10-23 02:39:42 -05:00
parent 8abde7beba
commit cae7c2d68a
+2 -1
View File
@@ -48,7 +48,8 @@ pfUI:RegisterModule("unusable", function ()
for _, bag in pairs(pfUI.BACKPACK) do
pfUI.bag.delay.UpdateBag[bag] = true
end
if pfUI.bag.left:IsShown() then
-- the bank frame is only created on first bank visit
if pfUI.bag.left and pfUI.bag.left:IsShown() then
for _, bag in pairs(pfUI.BANK) do
pfUI.bag.delay.UpdateBag[bag] = true
end