Skip to content

Commit

Permalink
use myaccount primary domain constant
Browse files Browse the repository at this point in the history
  • Loading branch information
DilshanSenarath committed Jan 7, 2025
1 parent 0787a2d commit 8c5e52c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions apps/myaccount/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@
"regenerator-runtime": "^0.13.9",
"semantic-ui-react": "^2.1.3",
"swr": "^2.0.0",
"uuid": "^8.3.0",
"@wso2is/admin.userstores.v1": "^2.26.23"
"uuid": "^8.3.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.4.2",
Expand Down
4 changes: 2 additions & 2 deletions apps/myaccount/src/configs/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* under the License.
*/

import { PRIMARY_USERSTORE } from "@wso2is/admin.userstores.v1/constants";
import { I18nModuleInitOptions, I18nModuleOptionsInterface, MetaI18N, generateBackendPaths } from "@wso2is/i18n";
import { I18nConstants } from "../constants";
import { AppConstants } from "../constants/app-constants";
// Keep statement as this to avoid cyclic dependency. Do not import from config index.
import { SCIMConfigs } from "../extensions/configs/scim";
import { AppUtils } from "../init/app-utils";
Expand Down Expand Up @@ -165,7 +165,7 @@ export class Config {
isPasswordInputValidationEnabled: window["AppUtils"]?.getConfig()?.ui?.isPasswordInputValidationEnabled,
isProfileUsernameReadonly: window["AppUtils"]?.getConfig()?.ui?.isProfileUsernameReadonly,
primaryUserStoreDomainName: window[ "AppUtils" ]?.getConfig()?.ui?.primaryUserStoreDomainName?.toUpperCase()
?? PRIMARY_USERSTORE,
?? AppConstants.PRIMARY_USER_STORE_IDENTIFIER,
privacyPolicyConfigs: window["AppUtils"]?.getConfig()?.ui?.privacyPolicyConfigs,
productName: window["AppUtils"]?.getConfig()?.ui?.productName,
productVersionConfig: window["AppUtils"]?.getConfig()?.ui?.productVersionConfig,
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8c5e52c

Please sign in to comment.