Skip to content

Commit

Permalink
Correct pluralization of task count
Browse files Browse the repository at this point in the history
  • Loading branch information
schemar committed Apr 29, 2021
1 parent 1625760 commit f9a0b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueryRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class QueryRenderChild extends MarkdownRenderChild {
);
content.appendChild(taskList);
content.createDiv({
text: `${tasksCount} tasks`,
text: `${tasksCount} task${tasksCount !== 1 ? 's' : ''}`,
cls: 'tasks-count',
});
} else {
Expand Down

0 comments on commit f9a0b89

Please sign in to comment.