Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #30 from FernandVEYRIER/fix/issue-task-decimal-dis…
Browse files Browse the repository at this point in the history
…play

fix: removed trailing numbers in the issue task display
  • Loading branch information
0x4007 authored Feb 20, 2024
2 parents 6fa67c1 + 603aef4 commit 385a90e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/handlers/issue/generate-permits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ function generateContributionsOverview(userScoreDetails: TotalsById, issue: GitH
newRow(
"Issue",
"Task",
issue.assignees.length === 0 ? "-" : `${(1 / issue.assignees.length).toFixed(2)}`,
// Converting the division to Number() to avoid trailing zeroes
issue.assignees.length === 0 ? "-" : `${Number((1 / issue.assignees.length).toFixed(2))}`,
task?.toString() || "-"
)
);
Expand Down

0 comments on commit 385a90e

Please sign in to comment.