From d3841b766f9d37d557646003899f67525c5f755f Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Tue, 5 Oct 2021 17:04:09 +0200 Subject: chore: add eslint-plugin-unicorn (#733) --- recipes/clockify/webview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes/clockify') diff --git a/recipes/clockify/webview.js b/recipes/clockify/webview.js index 9fbb613..bf926e4 100644 --- a/recipes/clockify/webview.js +++ b/recipes/clockify/webview.js @@ -1,7 +1,7 @@ module.exports = Ferdi => { const getMessages = () => { const notifications = document.querySelectorAll('.notification--number'); - Ferdi.setBadge(0, notifications.length >= 1 ? 1 : 0); + Ferdi.setBadge(0, notifications.length > 0 ? 1 : 0); }; Ferdi.loop(getMessages); -- cgit v1.2.3-70-g09d2