From 737cfd3016e94e596522fd949cfc44a7db0f7619 Mon Sep 17 00:00:00 2001 From: Chris Nowicki <102450568+chris-nowicki@users.noreply.github.com> Date: Wed, 16 Oct 2024 16:37:02 -0400 Subject: [PATCH] update shashi comments --- api/apiFunctions.ts | 2 -- app/(main)/account/settings/page.tsx | 2 +- components/Nav/Nav.test.tsx | 36 +++++-------------- .../RestPasswordForm/ResetPasswordForm.tsx | 6 ++-- 4 files changed, 12 insertions(+), 34 deletions(-) diff --git a/api/apiFunctions.ts b/api/apiFunctions.ts index 2c6880aa..93041dd3 100644 --- a/api/apiFunctions.ts +++ b/api/apiFunctions.ts @@ -100,7 +100,6 @@ export async function resetPassword({ try { await account.updatePassword(newPassword, oldPassword); } catch (error) { - console.error('Password reset failed:', error); throw error; } } @@ -141,7 +140,6 @@ export async function updateUserEmail({ }, ); } catch (error) { - console.error('Error updating user email:', error); throw error; } } diff --git a/app/(main)/account/settings/page.tsx b/app/(main)/account/settings/page.tsx index d773babc..29777fe8 100644 --- a/app/(main)/account/settings/page.tsx +++ b/app/(main)/account/settings/page.tsx @@ -45,7 +45,7 @@ const AccountSettings = (): JSX.Element => { diff --git a/components/Nav/Nav.test.tsx b/components/Nav/Nav.test.tsx index 334c851d..74fc9655 100644 --- a/components/Nav/Nav.test.tsx +++ b/components/Nav/Nav.test.tsx @@ -67,11 +67,10 @@ describe('Nav', () => { it('renders link to /league/all', async () => { render(