fix(stats card): set correct value of commits count in accessability label (#3610)

This commit is contained in:
Alexandr Garbuzov 2024-01-23 15:41:03 +02:00 committed by GitHub
parent 533469d677
commit 91db5356fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -518,7 +518,7 @@ const renderStatsCard = (stats, options = {}) => {
if (key === "commits") {
return `${i18n.t("statcard.commits")} ${
include_all_commits ? "" : `in ${new Date().getFullYear()}`
} : ${totalStars}`;
} : ${STATS[key].value}`;
}
return `${STATS[key].label}: ${STATS[key].value}`;
})