Extract hasNotifications
This commit is contained in:
@@ -36,7 +36,9 @@
|
|||||||
if (!isEnabled) {
|
if (!isEnabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.length === 0) {
|
|
||||||
|
const hasNotifications = this.length > 0
|
||||||
|
if (!hasNotifications) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user