diff options
| author | sowgro <tpoke.ferrari@gmail.com> | 2025-04-05 16:29:05 -0400 | 
|---|---|---|
| committer | sowgro <tpoke.ferrari@gmail.com> | 2025-04-05 16:29:05 -0400 | 
| commit | 80492e8f6f88bff8035e27b814cc9eacbee40c65 (patch) | |
| tree | 1ccc4015e63543e32ac90beeb360326c6beedd8a /ufund-ui/src/app/services | |
| parent | c2e7b170bfa0678a6ff4576d07388778f30084b0 (diff) | |
| download | JellySolutions-80492e8f6f88bff8035e27b814cc9eacbee40c65.tar.gz JellySolutions-80492e8f6f88bff8035e27b814cc9eacbee40c65.tar.bz2 JellySolutions-80492e8f6f88bff8035e27b814cc9eacbee40c65.zip  | |
Fix storage after merge
Diffstat (limited to '')
| -rw-r--r-- | ufund-ui/src/app/services/users.service.ts | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/ufund-ui/src/app/services/users.service.ts b/ufund-ui/src/app/services/users.service.ts index 35d080d..688d6e4 100644 --- a/ufund-ui/src/app/services/users.service.ts +++ b/ufund-ui/src/app/services/users.service.ts @@ -60,7 +60,9 @@ export class UsersService {      }      refreshBasket() { -        let promiseArr = this.authService.getCurrentUser()!.basket.map(async needID => { +        let usr = this.authService.getCurrentUser(); +        if (!usr) return; +        let promiseArr = usr.basket.map(async needID => {              return await firstValueFrom(this.cupboardService.getNeed(needID));          })          Promise.all(promiseArr).then(r => this.basket.next(r));  | 
