Skip to content

Commit

Permalink
fix: users with no comment now can see their issue task on multiple a…
Browse files Browse the repository at this point in the history
…ssignees
  • Loading branch information
gentlementlegen committed Jul 8, 2024
1 parent 170cdcc commit 615d221
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/parser/github-comment-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ export class GithubCommentModule implements Module {
_createContributionRows(result: Result[0], sortedTasks: SortedTasks | undefined) {
const content: string[] = [];

if (result.task?.reward) {
content.push(buildContributionRow("Issue", "Task", result.task.multiplier, result.task.reward));
}

if (!sortedTasks) {
return content.join("");
}
Expand All @@ -83,9 +87,6 @@ export class GithubCommentModule implements Module {
</tr>`;
}

if (result.task?.reward) {
content.push(buildContributionRow("Issue", "Task", result.task.multiplier, result.task.reward));
}
if (sortedTasks.issues.specification) {
content.push(buildContributionRow("Issue", "Specification", 1, sortedTasks.issues.specification.score?.reward));
}
Expand Down

0 comments on commit 615d221

Please sign in to comment.