minor changes

This commit is contained in:
2025-11-24 17:04:49 +01:00
parent 6d0cada610
commit ac6f11cefa

View File

@@ -2237,7 +2237,8 @@ function buildSportsScoreBadge(scoreInfo) {
if (!scoreInfo) {
return null;
}
if (typeof scoreInfo.score !== 'number' || scoreInfo.score >= 0) {
// Show badge only for strictly positive scores; hide zero/negative
if (typeof scoreInfo.score !== 'number' || scoreInfo.score <= 0) {
return null;
}
const badge = document.createElement('span');