Skip to content

Commit

Permalink
improving csv file read
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaghettiOverload committed May 12, 2022
1 parent aceca5a commit 2ac8669
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/DynamicTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(',')
Expand Down

0 comments on commit 2ac8669

Please sign in to comment.