Web:Client:ProfileActionsStore: return checkEnabledActions for profile menu

This commit is contained in:
TimofeyBoyko 2022-10-13 12:22:39 +05:00
parent 7f72382d32
commit 20676d2cc9

View File

@ -232,13 +232,17 @@ class ProfileActionsStore {
});
}
}
return actions;
// return this.checkEnabledActions(actions);
return this.checkEnabledActions(actions);
};
checkEnabledActions = (actions) => {
const actionsArray = actions;
if (!this.authStore.settingsStore.additionalResourcesData) {
return actionsArray;
}
const feedbackAndSupportEnabled = this.authStore.settingsStore
.additionalResourcesData?.feedbackAndSupportEnabled;
const videoGuidesEnabled = this.authStore.settingsStore