From 91ceefb0b5986e0776402a9547c50bc48b130b43 Mon Sep 17 00:00:00 2001 From: Kevin Szuchet Date: Thu, 10 Aug 2023 10:39:02 +0200 Subject: [PATCH] fix: Set IsConnectingToServer to false if the connection fails --- src/components/Pages/ConnectToWorld/ConnectToWorld.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Pages/ConnectToWorld/ConnectToWorld.tsx b/src/components/Pages/ConnectToWorld/ConnectToWorld.tsx index d7a1328..bc392a9 100644 --- a/src/components/Pages/ConnectToWorld/ConnectToWorld.tsx +++ b/src/components/Pages/ConnectToWorld/ConnectToWorld.tsx @@ -108,6 +108,8 @@ function ConnectToWorld(props: Props) { } catch (error) { console.error('ERROR livekit connect', error) if (isErrorMessage(error)) setError(error.message) + } finally { + setIsConnectingToServer(false) } }, [identity, selectedServer, onSubmitConnectForm]