Skip to content

Commit

Permalink
FIx: owned -> quantity (#6)
Browse files Browse the repository at this point in the history
Co-authored-by: Philipp Meier <philipp.meier@ipt.ch>
  • Loading branch information
nevius and Philipp Meier authored Sep 29, 2023
1 parent 5d2da16 commit 5c4e37b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/models/card.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface Card {
superpower: string;
team: string;
image_url: string;
owned: number;
quantity: number;
}

export interface CardWithProfile extends Card {
Expand Down
2 changes: 1 addition & 1 deletion src/app/state/card/card.selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const selectCardsFiltered = createSelector(
if (showAll) {
return allCards;
} else {
return allCards.filter((card) => card.owned > 0);
return allCards.filter((card) => card.quantity > 0);
}
},
);
Expand Down

0 comments on commit 5c4e37b

Please sign in to comment.