diff --git a/src/hooks/useIPScanner.ts b/src/hooks/useIPScanner.ts index 9931e08..f2126d6 100644 --- a/src/hooks/useIPScanner.ts +++ b/src/hooks/useIPScanner.ts @@ -201,7 +201,7 @@ 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")) { + if (!(error instanceof Error && (error.name === "AbortError" || error.name === "TypeError"))) { testCount++; } }