This commit is contained in:
anirban paul 2024-05-09 12:00:17 +05:30 committed by GitHub
commit 71bb9f480c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

View File

@ -155,15 +155,15 @@ class ProfileView extends React.Component<IProfileViewProps, IProfileViewState>
}
return !(
user.name === name &&
user.username === username &&
(!name.trim() || user.name === name) &&
(!username.trim() || user.username === username) &&
(!newPassword?.trim() || !newPassword) &&
(!email || !email.trim() || (user.emails && user.emails[0].address === email)) &&
user.bio === bio &&
user.nickname === nickname &&
!newPassword &&
user.emails &&
user.emails[0].address === email &&
!customFieldsChanged
);
};
submit = async (): Promise<void> => {