From a76b1389e633378a71899cc065c5b492de3c9faa Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Fri, 23 Feb 2018 16:25:19 -0500 Subject: [PATCH] Extract `hasNotifications` --- js/notifications.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/notifications.js b/js/notifications.js index d6c2db4bb1..42dd348de6 100644 --- a/js/notifications.js +++ b/js/notifications.js @@ -36,7 +36,9 @@ if (!isEnabled) { return; } - if (this.length === 0) { + + const hasNotifications = this.length > 0 + if (!hasNotifications) { return; }