[FIX] Profile fields automatically reset (#1502)
This commit is contained in:
parent
f5188a8d12
commit
71bcef1510
|
@ -81,7 +81,7 @@ class ProfileView extends React.Component {
|
|||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
const { user } = this.props;
|
||||
if (user !== nextProps.user) {
|
||||
if (!equal(user, nextProps.user)) {
|
||||
this.init(nextProps.user);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue