Skip to content

Commit

Permalink
fix(locals): Fix locals with uppercase, just like INSA /2
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Jan 21, 2025
1 parent 87a5f04 commit 7020139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ export function getURLSearchParams(intl = undefined, id = '') {
const localsLowerCase = Object.fromEntries(
Object.entries(locals).map(([k, v]) => [k.toLowerCase(), v]),
);
const localAffiliationSettings = localsLowerCase?.[bsoLocalAffiliation.toLowerCase()];
const localAffiliationSettings = localsLowerCase?.[bsoLocalAffiliation?.toLowerCase()];
const alias = localAffiliationSettings?.alias;
const bsoCountry = urlSearchParams.get('bsoCountry')?.toLowerCase()
|| localAffiliationSettings?.country
Expand Down

0 comments on commit 7020139

Please sign in to comment.