small fix
This commit is contained in:
@@ -79,13 +79,13 @@ export default function ProfileSettings({
|
||||
toast.success("Settings Applied!");
|
||||
|
||||
if (
|
||||
user.email !== account.email ||
|
||||
user.username !== account.username ||
|
||||
user.name !== account.name ||
|
||||
user.email !== account.email
|
||||
user.name !== account.name
|
||||
) {
|
||||
update({
|
||||
username: user.username,
|
||||
email: user.username,
|
||||
email: user.email,
|
||||
name: user.name,
|
||||
});
|
||||
|
||||
@@ -175,6 +175,14 @@ export default function ProfileSettings({
|
||||
/>
|
||||
</div>
|
||||
) : undefined}
|
||||
|
||||
{user.username !== account.username ||
|
||||
user.name !== account.name ||
|
||||
user.email !== account.email ? (
|
||||
<p className="text-gray-500">
|
||||
You will need to log back in after you apply the changes.
|
||||
</p>
|
||||
) : undefined}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user