diff --git a/src/components/HealthChecks/HealthChecks.tsx b/src/components/HealthChecks/HealthChecks.tsx index 7efb698..abc16dd 100644 --- a/src/components/HealthChecks/HealthChecks.tsx +++ b/src/components/HealthChecks/HealthChecks.tsx @@ -37,14 +37,10 @@ export function HealthChecks({ online, onStepValid }: Props) { useEffect( () => { - if (codex.isSuccess) { - persistence.refetch(); - portForwarding.refetch().then(({ data }) => { - onStepValid(data?.reachable || false); - }); - } else { - onStepValid(false); - } + persistence.refetch(); + portForwarding.refetch(); + + onStepValid(codex.isSuccess); }, // We really do not want to add persistence and portForwarding as // dependencies because it will cause a re-render every time. @@ -163,18 +159,6 @@ export function HealthChecks({ online, onStepValid }: Props) { Internet connection -