diff --git a/src/lib/dux/sdk/thunks.js b/src/lib/dux/sdk/thunks.js index 7ffd292a3..8fdc2900e 100644 --- a/src/lib/dux/sdk/thunks.js +++ b/src/lib/dux/sdk/thunks.js @@ -66,7 +66,7 @@ export const handleConnection = ({ userDispatcher({ type: INIT_USER, payload: user }); // use nickname/profileUrl if provided // or set userID as nickname - if (nickname !== user.nickname || profileUrl !== user.profileUrl) { + if ((nickname !== user.nickname || profileUrl !== user.profileUrl) && (nickname !== '' || profileUrl !== '')) { newSdk.updateCurrentUserInfo(nickname || user.nickname, profileUrl || user.profileUrl) .then((namedUser) => { userDispatcher({ type: UPDATE_USER_INFO, payload: namedUser }); diff --git a/src/smart-components/App/stories/index.stories.js b/src/smart-components/App/stories/index.stories.js index 642912e78..57c227be4 100644 --- a/src/smart-components/App/stories/index.stories.js +++ b/src/smart-components/App/stories/index.stories.js @@ -204,9 +204,9 @@ export const user1 = () => fitPageSize( appId={appId} userId={array[0]} nickname={array[0]} + profileUrl={addProfile} showSearchIcon allowProfileEdit - profileUrl={addProfile} config={{ logLevel: 'all' }} queries={{}} replyType="QUOTE_REPLY"