From 60ccfc84facefcd2874a6876413cc161ffb703b2 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 10 Jan 2023 12:25:23 +0000 Subject: [PATCH] fix: break out of infinite loop if there are no notifications --- composables/users.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composables/users.ts b/composables/users.ts index ec147d2a..d250a12b 100644 --- a/composables/users.ts +++ b/composables/users.ts @@ -298,6 +298,9 @@ export const useNotifications = () => { notifications[id]![1].push(notification.id) } } + else { + break + } } while (true) }