diff options
Diffstat (limited to 'ufund-ui/src/app/components/funding-basket/funding-basket.component.ts')
-rw-r--r-- | ufund-ui/src/app/components/funding-basket/funding-basket.component.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts b/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts index 42015fe..9d25212 100644 --- a/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts +++ b/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts @@ -49,7 +49,7 @@ export class FundingBasketComponent implements } isInBasket(need: Need): boolean { - return this.basket.some(n => n.id == need.id); + return this.basket.includes(need) } addNeed(need: Need, quantity: number = 1): void { |