From b0cc129834d418f4c2898276f79b3d8f12e60ff7 Mon Sep 17 00:00:00 2001 From: tglide <26071571+TGlide@users.noreply.github.com> Date: Tue, 21 Mar 2023 19:21:15 +0000 Subject: [PATCH] refactor: change notification limit --- src/lib/stores/notifications.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/stores/notifications.ts b/src/lib/stores/notifications.ts index 26fa69a28..25ba01968 100644 --- a/src/lib/stores/notifications.ts +++ b/src/lib/stores/notifications.ts @@ -33,7 +33,7 @@ export const addNotification = (notification: Omit) => { const n = { ...defaults, ...notification }; notifications.update((all) => { - return [n, ...all.slice(0, 2)]; + return [n, ...all.slice(0, 4)]; }); if (n.timeout) setTimeout(() => dismissNotification(n.id), n.timeout);