From 7eb5c238dd2a3135f09579da89cd61de8b60ca33 Mon Sep 17 00:00:00 2001 From: U~man Date: Sun, 12 Jul 2020 16:38:13 +0200 Subject: [PATCH] FIX: Mod with 0 not displaying --- src/module/helpers.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"; } });