diff --git a/src/components/settings_modal/tabs/profile_tab.js b/src/components/settings_modal/tabs/profile_tab.js index e6db802d..b4bdf542 100644 --- a/src/components/settings_modal/tabs/profile_tab.js +++ b/src/components/settings_modal/tabs/profile_tab.js @@ -102,8 +102,8 @@ const ProfileTab = { show_role: this.showRole /* eslint-enable camelcase */ } }).then((user) => { - this.newFields.splice(user.fields.length) - merge(this.newFields, user.fields) + this.newFields.splice(user.redux.fields.length) + merge(this.newFields, user.redux.fields) this.$store.commit('addNewUsers', [user]) this.$store.commit('setCurrentUser', user) }) diff --git a/src/components/settings_modal/tabs/profile_tab.vue b/src/components/settings_modal/tabs/profile_tab.vue index 0f9210a6..c54a14c9 100644 --- a/src/components/settings_modal/tabs/profile_tab.vue +++ b/src/components/settings_modal/tabs/profile_tab.vue @@ -163,7 +163,7 @@
{{ $t('settings.current_avatar') }}
{{ $t('settings.set_new_avatar') }}
@@ -186,7 +186,7 @@{{ $t('settings.current_profile_banner') }}
{{ $t('settings.set_new_profile_banner') }}