Skip to content

Commit

Permalink
fixing unnecessary await on upload button
Browse files Browse the repository at this point in the history
  • Loading branch information
brnovasco committed Nov 12, 2024
1 parent 2e9aad5 commit ad962b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/spu-ui/src/app/_components/upload-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function UploadButton(props: ButtonProps) {
parse(file, {
header: true,
skipEmptyLines: true,
complete: async (results) => {
complete: (results) => {
const { data: csvData, errors } = results;
if (errors.length > 0) {
console.error("Error reading CSV file", errors);
Expand Down

0 comments on commit ad962b4

Please sign in to comment.