Skip to content

Commit

Permalink
LDBR-4.49: Поправить обновление аватара при загрузке (#57)
Browse files Browse the repository at this point in the history
* LDBR-4.49: Поправить обновление аватара при загрузке

* LDBR-4.49: Исправить линтер
  • Loading branch information
DPeshkoff authored Dec 22, 2021
1 parent e533171 commit 4a75be2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/stores/SettingsStore/SettingsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,15 @@ class SettingsStore extends BaseStore {
}
}

this._storage.set('avatar', this.__setAvatar(data.avatar));
const avatar = this.__setAvatar(data.avatar);

const formdata = new FormData();
if (avatar) {
this._storage.set('avatar', avatar);

formdata.append('avatar', data.avatar);
const formdata = new FormData();

formdata.append('avatar', data.avatar);
}

let payload;

Expand Down

0 comments on commit 4a75be2

Please sign in to comment.