From 67ef92fbde4ab5cbe10bb9ad8556087b6d60e8ca Mon Sep 17 00:00:00 2001
From: benal01 <bja4245@rit.edu>
Date: Tue, 18 Mar 2025 00:24:21 -0400
Subject: logging error handling

---
 ufund-ui/src/app/components/need-list/need-list.component.ts | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(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..0afa79e 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);
         }
       });
+      
     }
    
   }
-- 
cgit v1.2.3