Fix inventory showing quantities set to 0 #239

Merged
Vylpes merged 2 commits from feature/227-inventory-0-bug into develop 2024-05-24 17:50:35 +01:00

View file

@ -35,7 +35,8 @@ export default class InventoryHelper {
.filter(x => { .filter(x => {
x.cards = x.cards x.cards = x.cards
.sort((a, b) => b.type - a.type) .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; return x;
}); });