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 });