Skip to content

Commit

Permalink
fix(loadout): can now select potions again for item loadout
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Mar 25, 2023
1 parent 5b5b49f commit 6746983
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class LoadoutPage implements OnInit, OnDestroy {
ngOnInit() {
this.allUsableItems = this.inventory$.subscribe(items => {
const checkItems = items || [];
this.usableItems = checkItems.filter(item => (item.effects?.length ?? 0) > 0);
this.usableItems = checkItems.filter(item => (item.abilities?.length ?? 0) > 0);
this.usableFoods = checkItems.filter(item => (item.foodDuration ?? 0) > 0);
});

Expand Down

0 comments on commit 6746983

Please sign in to comment.