mirror of https://github.com/jetkvm/kvm.git
fix: defer version check until session is approved
This commit is contained in:
parent
192a470e67
commit
906c5cf4b7
|
|
@ -965,10 +965,11 @@ export default function KvmIdRoute() {
|
|||
useEffect(() => {
|
||||
if (appVersion) return;
|
||||
if (rpcDataChannel?.readyState !== "open") return;
|
||||
if (currentMode === "pending") return;
|
||||
|
||||
getLocalVersion();
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [appVersion, rpcDataChannel?.readyState]);
|
||||
}, [appVersion, rpcDataChannel?.readyState, currentMode]);
|
||||
|
||||
const ConnectionStatusElement = useMemo(() => {
|
||||
const isOtherSession = location.pathname.includes("other-session");
|
||||
|
|
|
|||
Loading…
Reference in New Issue