Skip to content

Commit

Permalink
fix: fusionLegacyEnvIdentifier in capital letters (#425)
Browse files Browse the repository at this point in the history
fusionLegacyEnvIdentifier should always be returned in capital letters ,
some application check this and are case sensitive

# Description

> Please include a summary of the change and which issue is fixed.
List any external dependencies that are required for this change.

- [ ] PR title and description are to the point and understandable
- [ ] I have performed a self-review of my own code'

Please select version type the purposed change:
- [ ] major
- [ ] minor
- [x] patch
- [ ] none <!--- Creates an empty changeset --> 

External Relations
- [ ] database migration


## Changeset
fusionLegacyEnvIdentifier should always be returned in capital letters ,
some application check this and are case sensitive
<!--- Write your changeset here -->

---------

Co-authored-by: Noggling <[email protected]>
  • Loading branch information
Noggling and Noggling authored Oct 27, 2023
1 parent fba041e commit ba3e9bc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/pr-425-1576203123.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

---
"fusion-project-portal": patch
---
fusionLegacyEnvIdentifier should always be returned in capital letters , some application check this and are case sensitive
2 changes: 1 addition & 1 deletion client/packages/portal-client/src/portal.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@
"level": 0
}
},
"fusionLegacyEnvIdentifier": "ci"
"fusionLegacyEnvIdentifier": "CI"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ba3e9bc

Please sign in to comment.