diff --git a/packages/client/src/pages/Profile/Section/Body/index.js b/packages/client/src/pages/Profile/Section/Body/index.js index 9ea3299a17..47cf661321 100644 --- a/packages/client/src/pages/Profile/Section/Body/index.js +++ b/packages/client/src/pages/Profile/Section/Body/index.js @@ -67,12 +67,7 @@ const SectionBodyContent = (props) => { return ( - + {tfa && tfa !== "none" && ( { export default withRouter( inject(({ auth, peopleStore }) => { - const { settingsStore, tfaStore } = auth; - const { culture } = settingsStore; + const { tfaStore } = auth; const { targetUserStore } = peopleStore; const { @@ -117,7 +111,6 @@ export default withRouter( return { profile, - culture, getBackupCodes, getNewBackupCodes, resetTfaApp, diff --git a/packages/client/src/pages/Profile/Section/Body/sub-components/main-profile/languagesCombo.js b/packages/client/src/pages/Profile/Section/Body/sub-components/main-profile/languagesCombo.js index 64960106d7..423d3fb9f5 100644 --- a/packages/client/src/pages/Profile/Section/Body/sub-components/main-profile/languagesCombo.js +++ b/packages/client/src/pages/Profile/Section/Body/sub-components/main-profile/languagesCombo.js @@ -60,13 +60,18 @@ const LanguagesCombo = (props) => { ); }; -export default inject(({ peopleStore }) => { +export default inject(({ auth, peopleStore }) => { const { loadingStore, targetUserStore } = peopleStore; + const { settingsStore } = auth; + const { setIsLoading } = loadingStore; const { updateProfileCulture } = targetUserStore; + const { culture } = settingsStore; + return { setIsLoading, updateProfileCulture, + culture, }; })(observer(LanguagesCombo));