From 9a3fbdc86b3592f2b4724b3245d98588c56b51b3 Mon Sep 17 00:00:00 2001 From: Clara Castillo Date: Thu, 13 Jun 2024 13:06:37 +0200 Subject: [PATCH] fix: show correct icons when promise toast updates --- libs/ngx-sonner/src/lib/toast.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/ngx-sonner/src/lib/toast.component.ts b/libs/ngx-sonner/src/lib/toast.component.ts index ad6a0df..4fe0db3 100644 --- a/libs/ngx-sonner/src/lib/toast.component.ts +++ b/libs/ngx-sonner/src/lib/toast.component.ts @@ -91,9 +91,7 @@ import { ToastProps } from './types'; } @else { @if (toastType() !== 'default' || toast().icon || toast().promise) {
- @if ( - toast().promise || (toastType() === 'loading' && !toast().icon) - ) { + @if (toastType() === 'loading' && !toast().icon) { } @if (toast().icon) {