From dfae2d231e39c81827d08fd8834d736c5b3005b1 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Tue, 31 Aug 2021 16:25:57 +0530 Subject: refactor: Use Ferdi.safeParseInt to ensure that parsing is done consistently in all recipes. --- recipes/monday/package.json | 2 +- recipes/monday/webview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes/monday') diff --git a/recipes/monday/package.json b/recipes/monday/package.json index 35556a8..5b6af2f 100644 --- a/recipes/monday/package.json +++ b/recipes/monday/package.json @@ -1,7 +1,7 @@ { "id": "monday", "name": "Monday", - "version": "1.1.0", + "version": "1.1.1", "license": "MIT", "config": { "serviceURL": "https://{teamId}.monday.com", diff --git a/recipes/monday/webview.js b/recipes/monday/webview.js index bdd73ca..924c071 100755 --- a/recipes/monday/webview.js +++ b/recipes/monday/webview.js @@ -9,7 +9,7 @@ module.exports = Ferdi => { const counters = document.querySelectorAll('.surface-control-component .item-counter, .surface-control-component .view-item-counter'); for (let i = 0; i < counters.length; i++) { - count += parseInt(counters[i].textContent); + count += Ferdi.safeParseInt(counters[i].textContent); } Ferdi.setBadge(count); -- cgit v1.2.3-54-g00ecf