Extract `hasNotifications`

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

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

Loading…
Cancel
Save