Skip to content

Commit

Permalink
fix: 🏷️ fix trackjs issue (binary-com#5826)
Browse files Browse the repository at this point in the history
* fix: 🏷️ fix trackjs issue

* empty: 🚀 to redeploy and trigger build
  • Loading branch information
mitra-deriv authored Nov 7, 2023
1 parent 9901c79 commit 9d68766
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/features/components/atoms/link/internal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ const Internal = ({
if (isBrowser()) {
rawLocale = localStorage.getItem('i18n') ?? 'en'
}
const locale = rawLocale?.replaceAll('-', '_')
let locale = 'en'
if (typeof rawLocale === 'string') {
locale = rawLocale?.replace(/-/g, '_')
}

const { is_default, path } = language_config[locale]
const is_non_localized = url.to.includes('careers')
Expand Down

0 comments on commit 9d68766

Please sign in to comment.