fix: defer version check until session is approved

This commit is contained in:
Alex P 2025-10-23 16:38:14 +03:00
parent 192a470e67
commit 906c5cf4b7
1 changed files with 2 additions and 1 deletions

View File

@ -965,10 +965,11 @@ export default function KvmIdRoute() {
useEffect(() => { useEffect(() => {
if (appVersion) return; if (appVersion) return;
if (rpcDataChannel?.readyState !== "open") return; if (rpcDataChannel?.readyState !== "open") return;
if (currentMode === "pending") return;
getLocalVersion(); getLocalVersion();
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps
}, [appVersion, rpcDataChannel?.readyState]); }, [appVersion, rpcDataChannel?.readyState, currentMode]);
const ConnectionStatusElement = useMemo(() => { const ConnectionStatusElement = useMemo(() => {
const isOtherSession = location.pathname.includes("other-session"); const isOtherSession = location.pathname.includes("other-session");