From eacfb30f242827fce068b00a59bca4864ddb21b9 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Wed, 31 May 2023 02:23:33 +0200 Subject: [PATCH] Fixed a bug in the App.jsx --- client/src/App.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/App.jsx b/client/src/App.jsx index 5cd321a..03cc649 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -7,7 +7,7 @@ import Content from "@/common/components/Content"; import {useState} from "react"; const App = () => { - const [sidebarOpen, setSidebarOpen] = useState(window.innerHeight >= 1024); + const [sidebarOpen, setSidebarOpen] = useState(window.innerWidth >= 1024); return ( <>