From 7e2abfca96a7fc194b90ede913d3fa808380adc6 Mon Sep 17 00:00:00 2001 From: Emil Kowalski <36730035+emilkowalski@users.noreply.github.com> Date: Fri, 1 Mar 2024 10:31:31 +0100 Subject: [PATCH] Display loading icon for loading toast (#359) --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index a8041a0..492d475 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -363,7 +363,7 @@ const Toast = (props: ToastProps) => { <> {toastType || toast.icon || toast.promise ? (
- {toast.promise && toast.type === 'loading' && !toast.icon + {toast.promise || (toast.type === 'loading' && !toast.icon) ? toast.icon || icons?.loading || getLoadingIcon() : null} {toast.type !== 'loading' ? toast.icon || icons?.[toastType] || getAsset(toastType) : null}