Extract hasNotifications
This commit is contained in:
parent
9516d667da
commit
a76b1389e6
1 changed files with 3 additions and 1 deletions
|
@ -36,7 +36,9 @@
|
|||
if (!isEnabled) {
|
||||
return;
|
||||
}
|
||||
if (this.length === 0) {
|
||||
|
||||
const hasNotifications = this.length > 0
|
||||
if (!hasNotifications) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue