diff --git a/neode-ui/src/components/CompanionIntroOverlay.vue b/neode-ui/src/components/CompanionIntroOverlay.vue index c86b47ee..a4721c27 100644 --- a/neode-ui/src/components/CompanionIntroOverlay.vue +++ b/neode-ui/src/components/CompanionIntroOverlay.vue @@ -514,8 +514,9 @@ async function loadWgPeer() { } catch (e) { const raw = e instanceof Error ? e.message : '' const isNetworkErr = WG_NETWORK_ERR.test(raw) - if (isNetworkErr && attempt < WG_RETRY_DELAYS_MS.length && stillOnWgStep()) { - await sleep(WG_RETRY_DELAYS_MS[attempt]) + const retryDelay = WG_RETRY_DELAYS_MS[attempt] + if (isNetworkErr && retryDelay !== undefined && stillOnWgStep()) { + await sleep(retryDelay) if (stillOnWgStep()) continue } // fetch()'s raw "Failed to fetch" means the node itself was unreachable —