From ed151334f0cb8cc7f61baf3161622107cd1d1926 Mon Sep 17 00:00:00 2001 From: Fadi Khadra Date: Fri, 24 Sep 2021 20:30:03 +0200 Subject: [PATCH] fix disabling icon individually #658 --- src/hooks/useToastContainer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useToastContainer.ts b/src/hooks/useToastContainer.ts index 8b494165..9b8dae6e 100644 --- a/src/hooks/useToastContainer.ts +++ b/src/hooks/useToastContainer.ts @@ -147,7 +147,7 @@ export function useToastContainer(props: ToastContainerProps) { updateId, isLoading: options.isLoading, theme: options.theme || props.theme!, - icon: options.icon || props.icon, + icon: options.icon ?? props.icon, isIn: false, key: options.key || instance.toastKey++, type: options.type!,