refactor: change notification limit

This commit is contained in:
tglide committed 2023-03-21 19:21:15 +00:00
1 parent e2d2c43a82
commit b0cc129834
1 file changed
+1 -1
+1 -1
View File
@@ -33,7 +33,7 @@ export const addNotification = (notification: Omit<Notification, 'id'>) => {
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);