From 00b7e8e312b62a49badc888ce10e5ff80b7f2530 Mon Sep 17 00:00:00 2001 From: Catherine Tan Date: Mon, 2 Dec 2024 22:58:51 -0800 Subject: [PATCH] remove unncessary throwing error --- utils/ProfileProvider.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/ProfileProvider.tsx b/utils/ProfileProvider.tsx index b38146a..b13dd54 100644 --- a/utils/ProfileProvider.tsx +++ b/utils/ProfileProvider.tsx @@ -72,8 +72,9 @@ export default function ProfileProvider({ children }: ProfileProviderProps) { const updatedProfile = await upsertProfile(completeProfile); setProfileData(updatedProfile); } catch (error) { + // TODO: maybe add some additional type checking of the error + // if we only want error.message console.error('Error setting profile:', error); - throw new Error('Error setting profile'); } }, []);