From f33e3ac0230ee7ed4a359d1f1d56ad6ff4775199 Mon Sep 17 00:00:00 2001 From: Andrew Radev Date: Wed, 14 Nov 2012 12:48:10 +0100 Subject: [PATCH] Fix wording for 0 items Should say "0 forks" instead of "0 fork". --- js/githubresume.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/githubresume.js b/js/githubresume.js index 52689a9..3c61ab8 100644 --- a/js/githubresume.js +++ b/js/githubresume.js @@ -320,8 +320,8 @@ var run = function() { username: username, watchers: repo.info.watchers, forks: repo.info.forks, - watchersLabel: repo.info.watchers > 1 ? 'watchers' : 'watcher', - forksLabel: repo.info.forks > 1 ? 'forks' : 'fork', + watchersLabel: repo.info.watchers == 0 || repo.info.watchers > 1 ? 'watchers' : 'watcher', + forksLabel: repo.info.forks == 0 || repo.info.forks > 1 ? 'forks' : 'fork', }; if (itemCount == sorted.length - 1 || itemCount == maxItems - 1) {