Skip to content

Commit

Permalink
fix: show correct icons when promise toast updates (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
tutkli committed Jun 13, 2024
1 parent 9a62e1c commit ac0d1b8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libs/ngx-sonner/src/lib/toast.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ import { ToastProps } from './types';
} @else {
@if (toastType() !== 'default' || toast().icon || toast().promise) {
<div data-icon>
@if (
toast().promise || (toastType() === 'loading' && !toast().icon)
) {
@if (toastType() === 'loading' && !toast().icon) {
<ng-content select="[loading-icon]" />
}
@if (toast().icon) {
Expand Down

0 comments on commit ac0d1b8

Please sign in to comment.