diff options
| author | secondl1ght <[email protected]> | 2022-08-24 19:51:31 -0400 |
|---|---|---|
| committer | secondl1ght <[email protected]> | 2022-08-24 19:51:31 -0400 |
| commit | f6ff5156b66efbb51ba046e37de65b466585124a (patch) | |
| tree | 6fed2233ad80097cd75a2a0340f199f2c564eef0 /src/routes/+layout.svelte | |
| parent | 8f8f85983d2f4cb734ed15b33ebc140028711733 (diff) | |
| download | coinos-ui-f6ff5156b66efbb51ba046e37de65b466585124a.tar.gz coinos-ui-f6ff5156b66efbb51ba046e37de65b466585124a.zip | |
remove duplicate elements and format
Diffstat (limited to 'src/routes/+layout.svelte')
| -rw-r--r-- | src/routes/+layout.svelte | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 5eab20bd..3309393e 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -11,7 +11,7 @@ import { warning, protectedRoutes } from '$lib/utils'; import { t, locale } from '$lib/translations'; - const localeLocalStorageKey = 'sveltekit-i18n-locale'; + const localeLocalStorageKey = 'sveltekit-i18n-locale'; $: $token = data.token; @@ -21,7 +21,7 @@ $: $selectedRate = data.user && $rate * (data.rates[data.user.currency] / data.rates.USD); onMount(() => { - let localStorageLocale = localStorage.getItem(localeLocalStorageKey); + let localStorageLocale = localStorage.getItem(localeLocalStorageKey); if (localStorageLocale) locale.set(localStorageLocale); locale.subscribe((lng) => { |
