Skip to content

Commit 8d0ed7b

Browse files
author
Emmanouil Konstantinidis
committed
Check notifications length before updating the icon
1 parent 1c77f0a commit 8d0ed7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/stores/notifications.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var NotificationsStore = Reflux.createStore({
1414
},
1515

1616
updateTrayIcon: function (notifications) {
17-
if (notifications) {
17+
if (notifications.length > 0) {
1818
ipc.sendChannel('update-icon', "IconGreen");
1919
} else {
2020
ipc.sendChannel('update-icon', "IconPlain");

0 commit comments

Comments
 (0)