From 996e05e9daca5e00430a406186e86b7a140648de Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 15 Feb 2020 14:05:14 +0100 Subject: [PATCH] fix errors --- src/components/molecules/ThemeSwitch.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/molecules/ThemeSwitch.jsx b/src/components/molecules/ThemeSwitch.jsx index c0a1c25..ccb65df 100644 --- a/src/components/molecules/ThemeSwitch.jsx +++ b/src/components/molecules/ThemeSwitch.jsx @@ -58,8 +58,8 @@ function ThemeSwitch() { classNameDark: 'dark', classNameLight: 'light' }) - const [themeColor, setThemeColor] = useState() - const [bodyClass, setBodyClass] = useState() + const [themeColor, setThemeColor] = useState('') + const [bodyClass, setBodyClass] = useState('') useEffect(() => { setBodyClass(value ? 'dark' : null)