diff --git a/src/lib/stores/notifications.ts b/src/lib/stores/notifications.ts index 397b578e4..26fa69a28 100644 --- a/src/lib/stores/notifications.ts +++ b/src/lib/stores/notifications.ts @@ -33,11 +33,7 @@ export const addNotification = (notification: Omit) => { const n = { ...defaults, ...notification }; notifications.update((all) => { - if (all.length < 3) { - return [n, ...all]; - } else { - return [n, ...all.slice(0, 2)]; - } + return [n, ...all.slice(0, 2)]; }); if (n.timeout) setTimeout(() => dismissNotification(n.id), n.timeout);