Extract `hasNotifications`

pull/1/head
Daniel Gasienica 8 years ago
parent 9516d667da
commit a76b1389e6

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

Loading…
Cancel
Save