Skip to content

Commit

Permalink
Handle NaN from header row
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Oct 2, 2024
1 parent eff80cb commit b645d20
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/aggregateGitHubDataFromUpwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ const issues = fs
if (!issue) {
return acc;
}
acc.push(Number(issue.trim()));
const issueNum = Number(issue.trim());
if (!issueNum) {
return acc;
}
acc.push(issueNum);
return acc;
}, [] as number[]);

Expand Down

0 comments on commit b645d20

Please sign in to comment.