aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbenal01 <bja4245@rit.edu>2025-03-18 00:24:21 -0400
committerbenal01 <bja4245@rit.edu>2025-03-18 00:24:21 -0400
commit67ef92fbde4ab5cbe10bb9ad8556087b6d60e8ca (patch)
tree85f50e0ede24bf79bab9f06efb185858ff794c25
parent02858a9af74b5f564b882adf38391dd3a1f5126c (diff)
downloadJellySolutions-67ef92fbde4ab5cbe10bb9ad8556087b6d60e8ca.tar.gz
JellySolutions-67ef92fbde4ab5cbe10bb9ad8556087b6d60e8ca.tar.bz2
JellySolutions-67ef92fbde4ab5cbe10bb9ad8556087b6d60e8ca.zip
logging error handling
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.ts6
1 files changed, 5 insertions, 1 deletions
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 953904c..0afa79e 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
@@ -98,7 +98,6 @@ export class NeedListComponent {
isHelper() {
const type = this.usersService.getCurrentUser()?.type;
- console.log(type);
return type === ("HELPER" as unknown as userType);
}
@@ -109,8 +108,13 @@ export class NeedListComponent {
const currentUser = this.usersService.getCurrentUser();
if (currentUser && currentUser.basket) {
currentUser.basket.push(need);
+ console.log("added to basket");
+ }
+ error: (err: any) => {
+ console.error(err);
}
});
+
}
}