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