diff --git a/src/module/helpers.js b/src/module/helpers.js index 01041df..26f08a5 100644 --- a/src/module/helpers.js +++ b/src/module/helpers.js @@ -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"; } });