web/app: add missing return to effect

This commit is contained in:
Tulir Asokan 2024-12-23 10:56:33 +02:00
parent c5f78c6133
commit 277732efd9

View file

@ -38,7 +38,7 @@ function App() {
const clientState = useEventAsState(client.state)
useEffect(() => {
window.client = client
client.start()
return client.start()
}, [client])
const afterConnectError = Boolean(connState?.error && connState.reconnecting && clientState?.is_verified)