Skip to content

Commit

Permalink
editing files
Browse files Browse the repository at this point in the history
  • Loading branch information
ishubham21 committed Oct 13, 2021
1 parent 65a8357 commit 590dcfb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion csv2json.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fs.createReadStream('csv/data.csv')
.on('data', (data) => results.push(data))
.on('end', () => {
fs.writeFileSync(
"src/data.json",
"src/participantData.json",
JSON.stringify(results),
(err) => {
if (err) throw err;
Expand Down
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import './App.css';

function App() {

const data = require('./../src/data.json')
const data = require('./../src/participantData.json')
console.log(data);

return (
<div className="App">

Expand Down
1 change: 1 addition & 0 deletions src/participantData.json

Large diffs are not rendered by default.

0 comments on commit 590dcfb

Please sign in to comment.