diff --git a/assignment-4/src/app/page.tsx b/assignment-4/src/app/page.tsx index f471e149..ac181650 100644 --- a/assignment-4/src/app/page.tsx +++ b/assignment-4/src/app/page.tsx @@ -13,7 +13,9 @@ function App() { ? 'dark' : 'light' const [currentTheme, setCurrentTheme] = useState( - typeof localStorage !== 'undefined' ? localStorage.getItem('theme') || systemTheme : systemTheme + typeof localStorage !== 'undefined' + ? localStorage.getItem('theme') || systemTheme + : systemTheme, ) useEffect(() => { localStorage.setItem('theme', JSON.stringify(currentTheme))