summaryrefslogtreecommitdiffstats
path: root/src/utils/providers/prism-theme.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-18 22:40:59 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-18 22:40:59 +0200
commit584bd42f871d2e1618ca414749f09c38f0143a44 (patch)
tree45c821eec2ad9c77d5bccf83057cfc0a7e22ba09 /src/utils/providers/prism-theme.tsx
parentb214baab3e17d92f784b4f782863deafc5558ee4 (diff)
chore: handle settings change
Diffstat (limited to 'src/utils/providers/prism-theme.tsx')
-rw-r--r--src/utils/providers/prism-theme.tsx2
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)