diff --git a/app/views/ProfileView/index.tsx b/app/views/ProfileView/index.tsx index e9e4e30c8..3fae40224 100644 --- a/app/views/ProfileView/index.tsx +++ b/app/views/ProfileView/index.tsx @@ -155,15 +155,15 @@ class ProfileView extends React.Component } 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 => {