Skip to content

Commit

Permalink
added types
Browse files Browse the repository at this point in the history
  • Loading branch information
yoge1212 committed Jun 13, 2024
1 parent a9eeb2c commit e5b4e75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ const logoImage = {

export type TeamSubmit = z.infer<typeof TeamSubmitSchema>;

async function fetchAndSetData(csvData, setData, errorMessage) {
async function fetchAndSetData(
csvData: string,
setData: (data: string[]) => void,
errorMessage: string
) {
try {
const lines = csvData.split('\n').filter(line => line.trim() !== '');
const parsedData = lines.map(line => line.trim().replace(/['"]/g, ''));
Expand Down

0 comments on commit e5b4e75

Please sign in to comment.