Skip to content

Commit cc7e43b

Browse files
vaisestLocalIdentity
authored andcommitted
fix empty check in PriceBuilderProcessPoENinjaResponse
1 parent f47a747 commit cc7e43b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Classes/TradeQuery.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function TradeQueryClass:PriceBuilderProcessPoENinjaResponse(resp)
192192
end
193193
end
194194
-- if nothing was actually found, we should add a notice
195-
if #self.pbCurrencyConversion[self.pbLeague] == 0 then
195+
if next(self.pbCurrencyConversion[self.pbLeague]) == nil then
196196
self:SetNotice(self.controls.pbNotice, "No currencies received from PoE Ninja")
197197
end
198198
else

0 commit comments

Comments
 (0)