diff options
| -rw-r--r-- | ufund-ui/src/app/components/need-list/need-list.component.ts | 6 | 
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 34e849d..fb09632 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);          }        }); +            }    } | 
