Skip to content

Commit

Permalink
remove unncessary throwing error
Browse files Browse the repository at this point in the history
  • Loading branch information
ccatherinetan committed Dec 3, 2024
1 parent d312e2a commit 00b7e8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/ProfileProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}, []);

Expand Down

0 comments on commit 00b7e8e

Please sign in to comment.