Skip to content

Commit

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

This reverts commit 4a75be2.
  • Loading branch information
DPeshkoff authored Dec 22, 2021
1 parent 4a75be2 commit dae404a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/stores/SettingsStore/SettingsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit dae404a

Please sign in to comment.