diff --git a/js/contributors.js b/js/contributors.js index 1def644..362a047 100644 --- a/js/contributors.js +++ b/js/contributors.js @@ -9,8 +9,12 @@ function getContributors(page) { const contributorList = []; data.forEach((contributor, idx) => { + if (idx === 0 && page > 1) { + contributorList.push(', '); + } + contributorList.push(`${contributor.login}`); - if (idx < data.length - 1 || page > 1) { + if (idx < data.length - 1) { contributorList.push(', '); } });