diff --git a/src/components/localization/localized-link.js b/src/components/localization/localized-link.js index d5dea8615b1..2fb3063e759 100644 --- a/src/components/localization/localized-link.js +++ b/src/components/localization/localized-link.js @@ -7,12 +7,7 @@ import { LocationContext } from '../layout/location-context.js' import language_config from '../../../i18n-config' import { LocaleContext } from './locale-context' import { localized_link_url } from 'common/constants' -import { - getLocalizedUrl, - getDerivAppLocalizedURL, - getThaiExcludedLocale, - replaceLocale, -} from 'common/utility' +import { getLocalizedUrl, getDerivAppLocalizedURL, getThaiExcludedLocale } from 'common/utility' import { DerivStore } from 'store' export const SharedLinkStyle = css` @@ -188,7 +183,7 @@ const ExternalLink = ({ const { is_eu_country } = useContext(DerivStore) const { setModalPayload, toggleModal } = useContext(LocationContext) const { affiliate_lang } = language_config[locale] - const url = getURLFormat(type, replaceLocale(locale), to, affiliate_lang) + const url = getURLFormat(type, locale, to, affiliate_lang) const show_modal = is_eu_country && !is_mail_link &&