fix: Set IsConnectingToServer to false if the connection fails

This commit is contained in:
Kevin Szuchet 2023-08-10 10:39:02 +02:00
parent 3b364a8ad6
commit 91ceefb0b5
No known key found for this signature in database
GPG Key ID: 1E083BC33700E594

View File

@ -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]