minor changes
This commit is contained in:
@@ -2237,7 +2237,8 @@ function buildSportsScoreBadge(scoreInfo) {
|
|||||||
if (!scoreInfo) {
|
if (!scoreInfo) {
|
||||||
return null;
|
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;
|
return null;
|
||||||
}
|
}
|
||||||
const badge = document.createElement('span');
|
const badge = document.createElement('span');
|
||||||
|
|||||||
Reference in New Issue
Block a user