diff --git a/src/hooks/useIPScanner.ts b/src/hooks/useIPScanner.ts index 4790d02..a6b37c3 100644 --- a/src/hooks/useIPScanner.ts +++ b/src/hooks/useIPScanner.ts @@ -200,8 +200,9 @@ export const useIPScanner = ({ allIps }: IPScannerProps) => { testCount++; } catch (error) { - // don't increase testResult if it's not an abort error - if (!(error instanceof Error && (error.name === "AbortError" || error.name === "TypeError"))) { + if ( error instanceof Error && error.name === "AbortError") { + // + } else { testCount++; } }