1
0
Fork 0

fix deepscan issues

This commit is contained in:
Enoch Riese 2022-06-06 13:24:38 -05:00
parent 9f7452dcc7
commit 5841be88ea
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ function useLocalStorage(key, initialValue) {
useEffect(() => {
const item = window.localStorage.getItem(prefix + key)
if (item) {
setValue(item ? JSON.parse(item) : initialValue);
setValue(JSON.parse(item));
}
setReady(true);
}, [])

View file

@ -1,5 +1,5 @@
import useLocalStorage from 'shared/hooks/useLocalStorage';
import { useState, useEffect } from 'react'
import {useEffect } from 'react'
function useTheme() {
// make a local storage item for the theme