Extract hasNotifications

This commit is contained in:
Daniel Gasienica 2018-02-23 16:25:19 -05:00
parent 9516d667da
commit a76b1389e6

View file

@ -36,7 +36,9 @@
if (!isEnabled) {
return;
}
if (this.length === 0) {
const hasNotifications = this.length > 0
if (!hasNotifications) {
return;
}