diff --git a/packages/account/src/Sections/Profile/PersonalDetails/personal-details.jsx b/packages/account/src/Sections/Profile/PersonalDetails/personal-details.jsx index 3781eebdb884..b4da912be5b0 100644 --- a/packages/account/src/Sections/Profile/PersonalDetails/personal-details.jsx +++ b/packages/account/src/Sections/Profile/PersonalDetails/personal-details.jsx @@ -126,7 +126,6 @@ export const PersonalDetailsForm = ({ updateAccountStatus, has_poa_address_mismatch, is_language_changing, - fetchAccountSettings, }) => { const [is_loading, setIsLoading] = React.useState(true); @@ -172,7 +171,6 @@ export const PersonalDetailsForm = ({ getSettings(); } initializeFormValues(); - return () => fetchAccountSettings(); }, [account_settings, is_eu, is_mf, is_social_signup]); React.useEffect(() => { @@ -1359,7 +1357,6 @@ PersonalDetailsForm.propTypes = { updateAccountStatus: PropTypes.func, has_poa_address_mismatch: PropTypes.bool, is_language_changing: PropTypes.bool, - fetchAccountSettings: PropTypes.func, }; export default connect(({ client, notifications, ui, common }) => ({ @@ -1385,5 +1382,4 @@ export default connect(({ client, notifications, ui, common }) => ({ updateAccountStatus: client.updateAccountStatus, has_poa_address_mismatch: client.account_status.status?.includes('poa_address_mismatch'), is_language_changing: common.is_language_changing, - fetchAccountSettings: client.fetchAccountSettings, }))(withRouter(PersonalDetailsForm)); diff --git a/packages/core/src/Stores/client-store.js b/packages/core/src/Stores/client-store.js index 5883e396cb79..7e3586440813 100644 --- a/packages/core/src/Stores/client-store.js +++ b/packages/core/src/Stores/client-store.js @@ -2327,7 +2327,7 @@ export default class ClientStore extends BaseStore { fetchAccountSettings() { return new Promise(resolve => { - WS.authorized.getSettings().then(response => { + WS.authorized.storage.getSettings().then(response => { this.setAccountSettings(response.get_settings); resolve(response); });