diff --git a/frontend/src/components/useSocket.ts b/frontend/src/components/useSocket.ts index 4efd27a..abbf6e4 100644 --- a/frontend/src/components/useSocket.ts +++ b/frontend/src/components/useSocket.ts @@ -61,7 +61,7 @@ function useSocket({ notify }: UseSocketProps): UseSocketResult { }[readyState] as Status; useEffect(() => { - if (readyState === WebSocket.CLOSED || readyState === WebSocket.CLOSING) { + if (connectionStatus === "closing" || connectionStatus === "closed") { setId(null); setDownloads(null); setExecutables(null); diff --git a/frontend/src/pages/index.astro b/frontend/src/pages/index.astro index 46adf00..156bd32 100644 --- a/frontend/src/pages/index.astro +++ b/frontend/src/pages/index.astro @@ -6,7 +6,7 @@ import Demo from "@/components/Demo";