diff --git a/react/features/base/profile/reducer.js b/react/features/base/profile/reducer.js index c13013424..e65e07faf 100644 --- a/react/features/base/profile/reducer.js +++ b/react/features/base/profile/reducer.js @@ -16,7 +16,10 @@ ReducerRegistry.register( STORE_NAME, (state = {}, action) => { switch (action.type) { case PROFILE_UPDATED: - return action.profile; + return { + ...state, + ...action.profile + }; } return state; diff --git a/react/features/settings/components/AbstractSettingsView.js b/react/features/settings/components/AbstractSettingsView.js index 8bfdabd89..4a9d9dd44 100644 --- a/react/features/settings/components/AbstractSettingsView.js +++ b/react/features/settings/components/AbstractSettingsView.js @@ -150,10 +150,7 @@ export class AbstractSettingsView extends Component { * @returns {void} */ _updateProfile(updateObject: Object) { - this.props.dispatch(updateProfile({ - ...this.props._profile, - ...updateObject - })); + this.props.dispatch(updateProfile(updateObject)); } }