diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-05-18 22:40:59 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-05-18 22:40:59 +0200 |
| commit | 584bd42f871d2e1618ca414749f09c38f0143a44 (patch) | |
| tree | 45c821eec2ad9c77d5bccf83057cfc0a7e22ba09 /src/utils/providers | |
| parent | b214baab3e17d92f784b4f782863deafc5558ee4 (diff) | |
chore: handle settings change
Diffstat (limited to 'src/utils/providers')
| -rw-r--r-- | src/utils/providers/prism-theme.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/providers/prism-theme.tsx b/src/utils/providers/prism-theme.tsx index 62bcf56..23a2a36 100644 --- a/src/utils/providers/prism-theme.tsx +++ b/src/utils/providers/prism-theme.tsx @@ -55,7 +55,7 @@ const isValidTheme = (theme: string): boolean => { const getTheme = (key: string): PrismTheme | undefined => { if (typeof window === 'undefined') return undefined; - const storageValue = LocalStorage.get(key); + const storageValue = LocalStorage.get<string>(key); return storageValue && isValidTheme(storageValue) ? (storageValue as PrismTheme) |
