Fix inventory showing quantities set to 0
All checks were successful
Test / build (push) Successful in 2m29s

This commit is contained in:
Ethan Lane 2024-05-24 17:24:02 +01:00
parent caa991a259
commit 28c3bdae12

View file

@ -35,7 +35,8 @@ export default class InventoryHelper {
.filter(x => {
x.cards = x.cards
.sort((a, b) => b.type - a.type)
.filter(y => inventory.find(z => z.CardNumber == y.id));
.filter(y => inventory.find(z => z.CardNumber == y.id))
.filter(y => inventory.find(z => z.CardNumber == y.id)!.Quantity > 0);
return x;
});