fix: break out of infinite loop if there are no notifications
This commit is contained in:
parent
fa801f9912
commit
60ccfc84fa
|
@ -298,6 +298,9 @@ export const useNotifications = () => {
|
||||||
notifications[id]![1].push(notification.id)
|
notifications[id]![1].push(notification.id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
break
|
||||||
|
}
|
||||||
} while (true)
|
} while (true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue