profileupdate without empty or whitespace
This commit is contained in:
parent
e8e42be69c
commit
724d0cff7a
|
@ -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> => {
|
||||
|
|
Loading…
Reference in New Issue