diff --git a/src/stores/SettingsStore/SettingsStore.js b/src/stores/SettingsStore/SettingsStore.js index 66e66a3..d8ba075 100644 --- a/src/stores/SettingsStore/SettingsStore.js +++ b/src/stores/SettingsStore/SettingsStore.js @@ -252,15 +252,11 @@ class SettingsStore extends BaseStore { } } - const avatar = this.__setAvatar(data.avatar); + this._storage.set('avatar', this.__setAvatar(data.avatar)); - if (avatar) { - this._storage.set('avatar', avatar); + const formdata = new FormData(); - const formdata = new FormData(); - - formdata.append('avatar', data.avatar); - } + formdata.append('avatar', data.avatar); let payload;