From 2ac8669cd39b7efc71a38366cf5899383b99b2c3 Mon Sep 17 00:00:00 2001 From: SpaghettiOverload Date: Thu, 12 May 2022 14:21:12 +0300 Subject: [PATCH] improving csv file read --- src/components/DynamicTable/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/DynamicTable/index.tsx b/src/components/DynamicTable/index.tsx index 9c7dbed..712ad40 100644 --- a/src/components/DynamicTable/index.tsx +++ b/src/components/DynamicTable/index.tsx @@ -51,6 +51,8 @@ const DynamicTable = () => { let txBatch = [] for (let line of content) { line = line.trim() + line = line.replaceAll('"', '') + line = line.replaceAll("'", "") if (line.length === 0) { invdalidData = true; break } const columns = line.split(',')