From 71bcef1510daf002edf6c5c8d0116152392fc740 Mon Sep 17 00:00:00 2001 From: Bernard Seow Date: Tue, 28 Jan 2020 21:40:22 +0800 Subject: [PATCH] [FIX] Profile fields automatically reset (#1502) --- app/views/ProfileView/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/ProfileView/index.js b/app/views/ProfileView/index.js index 1f89d017f..3121db989 100644 --- a/app/views/ProfileView/index.js +++ b/app/views/ProfileView/index.js @@ -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); } }