summaryrefslogtreecommitdiffstats
path: root/src/utils/providers/prism-theme.tsx
diff options
context:
space:
mode:
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)