aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/rocketchat/webview.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-31 16:25:57 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-31 16:25:57 +0530
commitdfae2d231e39c81827d08fd8834d736c5b3005b1 (patch)
tree5037b401e7de837fdd6046a3c61ac76aed240e6e /recipes/rocketchat/webview.js
parentNew recipe: odoo (diff)
downloadferdium-recipes-dfae2d231e39c81827d08fd8834d736c5b3005b1.tar.gz
ferdium-recipes-dfae2d231e39c81827d08fd8834d736c5b3005b1.tar.zst
ferdium-recipes-dfae2d231e39c81827d08fd8834d736c5b3005b1.zip
refactor: Use Ferdi.safeParseInt to ensure that parsing is done consistently in all recipes.
Diffstat (limited to 'recipes/rocketchat/webview.js')
-rw-r--r--recipes/rocketchat/webview.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/rocketchat/webview.js b/recipes/rocketchat/webview.js
index 1702c74..d3d0a27 100644
--- a/recipes/rocketchat/webview.js
+++ b/recipes/rocketchat/webview.js
@@ -41,7 +41,7 @@ module.exports = Ferdi => {
41 let directMessagesCount = 0; 41 let directMessagesCount = 0;
42 42
43 for (const directMessage of directMessages) { 43 for (const directMessage of directMessages) {
44 directMessagesCount += parseInt(directMessage.textContent, 10); 44 directMessagesCount += Ferdi.safeParseInt(directMessage.textContent);
45 } 45 }
46 46
47 const indirectMessagesCount = Math.round( 47 const indirectMessagesCount = Math.round(