diff --git a/src/components/Menu/MenuOptions/ThemeSwitcher.tsx b/src/components/Menu/MenuOptions/ThemeSwitcher.tsx index 5f055d3..edf3995 100644 --- a/src/components/Menu/MenuOptions/ThemeSwitcher.tsx +++ b/src/components/Menu/MenuOptions/ThemeSwitcher.tsx @@ -34,18 +34,18 @@ const ThemeSwitcher = () => { } }, [theme]); - return ( - theme && ( - - {theme === 'dark' ? : } - {getOppositeTheme(theme).charAt(0).toUpperCase() + - getOppositeTheme(theme).slice(1)}{' '} - mode - - ) + return theme ? ( + + {theme === 'dark' ? : } + {getOppositeTheme(theme).charAt(0).toUpperCase() + + getOppositeTheme(theme).slice(1)}{' '} + mode + + ) : ( + <> ); };