We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a37384 commit b3c2e46Copy full SHA for b3c2e46
packages/web/src/lib/stores/toasts.svelte.ts
@@ -9,7 +9,9 @@ class Toaster {
9
addToast(text: string) {
10
const id = crypto.randomUUID()
11
this.#toasts = [...this.#toasts, { id, text }]
12
- setTimeout(() => this.#toasts.filter((el) => el.id !== id), 5000)
+ setTimeout(() => {
13
+ this.#toasts = this.#toasts.filter((el) => el.id !== id)
14
+ }, 5000)
15
}
16
17
get toasts() {
0 commit comments