fix: crash with toasts

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