aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-03-18 01:13:04 -0400
committersowgro <tpoke.ferrari@gmail.com>2025-03-18 01:13:04 -0400
commitb9d7dc1cf8962978652e5814e6a5c936d4ff9b61 (patch)
tree4bb4abb3ae293cd1dc458f45729f445bdca4c619 /ufund-ui/src/app/components
parent2f73d8451610830d148b3cf58bd1aa6fea15cd21 (diff)
downloadJellySolutions-b9d7dc1cf8962978652e5814e6a5c936d4ff9b61.tar.gz
JellySolutions-b9d7dc1cf8962978652e5814e6a5c936d4ff9b61.tar.bz2
JellySolutions-b9d7dc1cf8962978652e5814e6a5c936d4ff9b61.zip
push changes so far
Diffstat (limited to 'ufund-ui/src/app/components')
-rw-r--r--ufund-ui/src/app/components/funding-basket/funding-basket.component.ts2
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.ts4
2 files changed, 3 insertions, 3 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 {
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.ts b/ufund-ui/src/app/components/need-list/need-list.component.ts
index 0e808dc..5bb3887 100644
--- a/ufund-ui/src/app/components/need-list/need-list.component.ts
+++ b/ufund-ui/src/app/components/need-list/need-list.component.ts
@@ -101,7 +101,7 @@ export class NeedListComponent {
return type === ("HELPER" as unknown as userType);
}
- add(need: Need) {
+ add(need: number) {
const currentUser = this.usersService.getCurrentUser();
if (currentUser) {
this.usersService.updateUser(currentUser.username, currentUser).subscribe(() => {
@@ -114,7 +114,7 @@ export class NeedListComponent {
console.error(err);
}
});
-
+
}
}