From 46cca3cff3a7b22eb62984933bee205169497e51 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 16 Jul 2023 12:44:34 -0400 Subject: [PATCH] bug fix --- components/Modal/User/ProfileSettings.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/Modal/User/ProfileSettings.tsx b/components/Modal/User/ProfileSettings.tsx index 0365a78..1591738 100644 --- a/components/Modal/User/ProfileSettings.tsx +++ b/components/Modal/User/ProfileSettings.tsx @@ -86,14 +86,15 @@ export default function ProfileSettings({ user.username !== account.username || user.name !== account.name || user.email !== account.email - ) + ) { update({ username: user.username, email: user.username, name: user.name, }); - signOut(); + signOut(); + } if (response.ok) { setUser({ ...user, newPassword: undefined });