Skip to content

Commit

Permalink
fix(toast): narrow type for cToastClose
Browse files Browse the repository at this point in the history
  • Loading branch information
xidedix committed Jan 16, 2025
1 parent f9106c3 commit 6f007e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</svg>
<strong>{{ title }}</strong>
</c-toast-header>
<c-toast-body #toastBody [cToastClose]="toastBody.toast">
<c-toast-body #toastBody [cToastClose]="toastBody.toast ?? undefined">
<p class="mb-1">This is a dynamic toast no {{ toastBody.toast?.index() }} {{ toastBody.toast?.clock }}</p>
<ng-content />
<c-progress thin [value]="25*(toastBody.toast?.clock ?? 1)" />
Expand Down

0 comments on commit 6f007e4

Please sign in to comment.