Fix inventory showing quantities set to 0 #239
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue