fix: use better toasts id fix

This commit is contained in:
James Xylight committed 2025-07-04 20:36:19 -07:00
1 parent fe21d52206
commit 47fc1e2e26
1 file changed
+1 -1
+1 -1
View File
@@ -43,7 +43,7 @@ export function toast({
let id = 0 let id = 0
toasts.update(toasts => { toasts.update(toasts => {
id = Math.max(...toasts.map(t => t.id)) ?? 0 + 1 id = Math.max(0, ...toasts.map(t => t.id)) + 1
return [ return [
...toasts, ...toasts,