FIX: Mod with 0 not displaying
parent
46573d0f43
commit
7eb5c238dd
|
@ -9,12 +9,12 @@ export const registerHelpers = async function () {
|
|||
});
|
||||
|
||||
Handlebars.registerHelper("mod", function (val) {
|
||||
if (val == 0) {
|
||||
return "0";
|
||||
} else if (val > 0) {
|
||||
if (val > 0) {
|
||||
return `+${val}`;
|
||||
} else if (val < 0) {
|
||||
return `${val}`;
|
||||
} else {
|
||||
return "0";
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue