[FIX] Profile fields automatically reset (#1502)

This commit is contained in:
Bernard Seow 2020-01-28 21:40:22 +08:00 committed by Diego Mello
parent f5188a8d12
commit 71bcef1510
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class ProfileView extends React.Component {
componentWillReceiveProps(nextProps) { componentWillReceiveProps(nextProps) {
const { user } = this.props; const { user } = this.props;
if (user !== nextProps.user) { if (!equal(user, nextProps.user)) {
this.init(nextProps.user); this.init(nextProps.user);
} }
} }