Skip to content

Commit

Permalink
linter warnings fix (hopefully last)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderlz committed Jan 5, 2025
1 parent cc31f80 commit 578982d
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,19 @@ const MessagesTable: React.FC<MessagesTableProps> = ({
}
return String(value ?? '');
})
.join(','),
.join(',')
);
return [headers.join(','), ...rows].join('\n');
};
}, []);

const jsonSaver = useDataSaver(
`${baseFileName}.json`,
JSON.stringify(savedMessagesJson, null, '\t'),
JSON.stringify(savedMessagesJson, null, '\t')
);
const csvSaver = useDataSaver(
`${baseFileName}.csv`,
convertToCSV(savedMessagesJson),
convertToCSV(savedMessagesJson)
);

const handleFormatSelect = (downloadFormat: DownloadFormat) => {
Expand Down Expand Up @@ -226,4 +226,3 @@ const MessagesTable: React.FC<MessagesTableProps> = ({
};

export default MessagesTable;

0 comments on commit 578982d

Please sign in to comment.