diff --git a/src/hooks/use-parse-csv.ts b/src/hooks/use-parse-csv.ts index b0c1bf9..793e561 100644 --- a/src/hooks/use-parse-csv.ts +++ b/src/hooks/use-parse-csv.ts @@ -124,8 +124,9 @@ export function useParseCsv({ current: mappings, }, })) - count++ - } else if (count <= limit) { + } + + if (count < limit) { allResults.push(results.data) count++ } else {