diff --git a/packages/app-desktop/gui/Navigator.tsx b/packages/app-desktop/gui/Navigator.tsx index ddaff17d85..de7c200c51 100644 --- a/packages/app-desktop/gui/Navigator.tsx +++ b/packages/app-desktop/gui/Navigator.tsx @@ -56,7 +56,7 @@ const useWindowRefocusManager = (route: AppStateRoute) => { }; const useContainerSize = (container: HTMLElement|null) => { - const [size, setSize] = useState({ width: container?.clientWidth, height: container?.clientHeight }); + const [size, setSize] = useState({ width: container?.clientWidth ?? 0, height: container?.clientHeight ?? 0 }); useEffect(() => { if (!container) return () => {};