From bdeca049516898f44343983b4b39ec4938d109cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 1 Sep 2023 20:41:14 -0400 Subject: [PATCH] fix: always return string from helper if value ended up being 0 it wasnt output --- public/src/modules/helpers.common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/modules/helpers.common.js b/public/src/modules/helpers.common.js index 8121ad171d..d8ab1025fe 100644 --- a/public/src/modules/helpers.common.js +++ b/public/src/modules/helpers.common.js @@ -324,7 +324,7 @@ module.exports = function (utils, Benchpress, relative_path) { } function increment(value, inc) { - return value + parseInt(inc, 10); + return String(value + parseInt(inc, 10)); } function generateRepliedTo(post, timeagoCutoff) {