Common: SettingsStore: fix mobx warning

This commit is contained in:
Viktor Fomin 2023-04-06 15:51:40 +03:00
parent 6d6f42134a
commit 874c034ff6

View File

@ -548,9 +548,13 @@ class SettingsStore {
this.currentProductId = currentProductId;
};
setPortalOwner = (owner) => {
this.owner = owner;
};
getPortalOwner = async () => {
const owner = await api.people.getUserById(this.ownerId);
this.owner = owner;
this.setPortalOwner(owner);
return owner;
};