Skip to content

Commit 153f341

Browse files
committedFeb 5, 2025·
fix(useToast)!: don't return a promise on add
1 parent 533e889 commit 153f341

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/runtime/composables/useToast.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function useToast() {
3333
running.value = false
3434
}
3535

36-
async function add(toast: Partial<Toast>): Promise<Toast> {
36+
function add(toast: Partial<Toast>): Toast {
3737
const body = {
3838
id: generateId(),
3939
open: true,
@@ -42,7 +42,7 @@ export function useToast() {
4242

4343
queue.push(body)
4444

45-
await processQueue()
45+
processQueue()
4646

4747
return body
4848
}

0 commit comments

Comments
 (0)
Please sign in to comment.