diff options
| author | Akash Keshav <112591754+domesticchores@users.noreply.github.com> | 2025-03-18 12:42:37 -0400 | 
|---|---|---|
| committer | Akash Keshav <112591754+domesticchores@users.noreply.github.com> | 2025-03-18 12:42:37 -0400 | 
| commit | 98431cd75078fd671270039ad9fa4d42759dc502 (patch) | |
| tree | 24316d810e3f34b676b298220a0c2c7af36edc80 /ufund-ui/src/app/components/need-list | |
| parent | 0b41684e57c79374aee3a564307cd4fdef603e7c (diff) | |
| download | JellySolutions-98431cd75078fd671270039ad9fa4d42759dc502.tar.gz JellySolutions-98431cd75078fd671270039ad9fa4d42759dc502.tar.bz2 JellySolutions-98431cd75078fd671270039ad9fa4d42759dc502.zip  | |
reworked funding basket to accept need-list component. -ak
Diffstat (limited to 'ufund-ui/src/app/components/need-list')
| -rw-r--r-- | ufund-ui/src/app/components/need-list/need-list.component.ts | 6 | 
1 files changed, 3 insertions, 3 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 46e09f0..2764c7e 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 @@ -107,12 +107,12 @@ export class NeedListComponent {    add(need: Need) {      const currentUser = this.usersService.getCurrentUser(); -    console.log("get current user in angular:", currentUser) +    //console.log("get current user in angular:", currentUser)      if (currentUser) {        currentUser.basket.push(need.id); -      console.log("pushed to basket: " + currentUser.basket) +      //console.log("pushed to basket: " + currentUser.basket)        this.usersService.updateUser(currentUser).subscribe(() => { -        console.log("rah"); +        this.usersService.refreshBasket();          error: (err: any) => {            console.error(err);          }  | 
