aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/need-list/need-list.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ufund-ui/src/app/components/need-list/need-list.component.ts')
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.ts4
1 files changed, 2 insertions, 2 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 0afa79e..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
@@ -104,7 +104,7 @@ 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);
@@ -116,7 +116,7 @@ export class NeedListComponent {
});
}
-
+
}
back() {