From 3564917a539bc5bba7e149b8c157e0bd633be23e Mon Sep 17 00:00:00 2001 From: sowgro Date: Tue, 18 Mar 2025 00:24:42 -0400 Subject: Fix problem in userService --- ufund-ui/src/app/components/need-list/need-list.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ufund-ui/src/app/components/need-list/need-list.component.ts') 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..34e849d 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 @@ -105,14 +105,14 @@ export class NeedListComponent { add(need: Need) { const currentUser = this.usersService.getCurrentUser(); if (currentUser) { - this.usersService.updateUser(currentUser.username).subscribe(() => { + this.usersService.updateUser(currentUser.username, currentUser).subscribe(() => { const currentUser = this.usersService.getCurrentUser(); if (currentUser && currentUser.basket) { currentUser.basket.push(need); } }); } - + } back() { -- cgit v1.2.3