diff --git a/apps/myaccount/src/api/change-password.ts b/apps/myaccount/src/api/change-password.ts index 661ed89f43f..36c30a5bf9b 100644 --- a/apps/myaccount/src/api/change-password.ts +++ b/apps/myaccount/src/api/change-password.ts @@ -45,7 +45,7 @@ export const updatePassword = (currentPassword: string, newPassword: string, isS // See https://github.com/asgardio/asgardio-js-oidc-sdk/issues/45 for progress. // httpRequest.disableHandler(); - const tenantDomain = isSubOrgUser ? userOrganizationId : store.getState().config.tenantDomain; + const tenantDomain = isSubOrgUser ? userOrganizationId : store.getState().authenticationInformation.tenantDomain; const username: string = [ store.getState().authenticationInformation?.profileInfo.userName, "@",