From 9884945991fd64175910bdff2aec0a0f50affefc Mon Sep 17 00:00:00 2001 From: Christopher Berge Hove Date: Fri, 27 Oct 2023 10:56:05 +0200 Subject: [PATCH] fix: fusionLegacyEnvIdentifier should always be returned in capital letters , some application check this and are case sensitive --- client/packages/portal-client/src/portal.config.json | 2 +- .../portal-core/src/app/utils/app-get-legacy-client-config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/packages/portal-client/src/portal.config.json b/client/packages/portal-client/src/portal.config.json index 2600eef1e..e64bcb8d2 100644 --- a/client/packages/portal-client/src/portal.config.json +++ b/client/packages/portal-client/src/portal.config.json @@ -40,5 +40,5 @@ "level": 0 } }, - "fusionLegacyEnvIdentifier": "ci" + "fusionLegacyEnvIdentifier": "CI" } \ No newline at end of file diff --git a/client/packages/portal-core/src/app/utils/app-get-legacy-client-config.ts b/client/packages/portal-core/src/app/utils/app-get-legacy-client-config.ts index e744666ce..6169eba90 100644 --- a/client/packages/portal-core/src/app/utils/app-get-legacy-client-config.ts +++ b/client/packages/portal-core/src/app/utils/app-get-legacy-client-config.ts @@ -6,7 +6,7 @@ export const getLegacyClientConfig = (): Client => ({ }); export const getFusionLegacyEnvIdentifier = (): string => { - return window._config_.fusionLegacyEnvIdentifier; + return window._config_.fusionLegacyEnvIdentifier.toUpperCase(); }; declare global { interface Window {