Skip to content
Snippets Groups Projects
Unverified Commit af77ff03 authored by Simon Mulquin's avatar Simon Mulquin Committed by GitHub
Browse files

fix: :bug: Fix share feature

* fix: :globe_with_meridians: missing locale

* chore: :loud_sound: Add logs

* fix: :pencil2: typo

* fix: :adhesive_bandage: share button doesn't work in next build
parent d453f1de
Branches
Tags v3.4
No related merge requests found
......@@ -42,7 +42,7 @@ const Languages = ({
<MenuItem
disabled={language === SupportedLocales[locale]}
onClick={() => onConfirm(SupportedLocales[locale])}
>{t(`languages.${locale}`)}</MenuItem>
>{t(`PROTECTED.languages.${locale}`)}</MenuItem>
))}
</MenuList>
</Box>
......
......@@ -22,8 +22,9 @@ const useShare = () => {
const localeParamIndex = splittedUrl.findIndex(
member => SupportedLocales[member]
);
splittedUrl[localeParamIndex] = DEFAULT_LOCALE;
const withDefaultLocaleURL = splittedUrl.join('/');
const urlCopy = [...splittedUrl]
urlCopy[localeParamIndex] = DEFAULT_LOCALE;
const withDefaultLocaleURL = urlCopy.join('/');
// If navigator share capability
if (navigatorHasShareCapability) {
return await navigator.share({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment