diff --git a/src/core/toast.ts b/src/core/toast.ts index 8d15c20a..bd57061e 100644 --- a/src/core/toast.ts +++ b/src/core/toast.ts @@ -123,7 +123,7 @@ function handlePromise( // Remove the toast if the input has not been provided. This prevents the toast from hanging // in the pending state if a success/error toast has not been provided. if (input == null) { - toast.dismiss(id); + if (id) toast.dismiss(id); return; }