FIX: Mod with 0 not displaying

master
U~man 2020-07-12 16:38:13 +02:00
parent 46573d0f43
commit 7eb5c238dd
1 changed files with 3 additions and 3 deletions

View File

@ -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";
}
});