diff --git a/src/runtime/composables/useToast.ts b/src/runtime/composables/useToast.ts index 7c895e48..0773ec91 100644 --- a/src/runtime/composables/useToast.ts +++ b/src/runtime/composables/useToast.ts @@ -33,7 +33,7 @@ export function useToast() { running.value = false } - async function add(toast: Partial): Promise { + function add(toast: Partial): Toast { const body = { id: generateId(), open: true, @@ -42,7 +42,7 @@ export function useToast() { queue.push(body) - await processQueue() + processQueue() return body }