Skip to content

Commit

Permalink
fix(pie-toast-provider): DSW-2222 ensure duration is parsed correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
raoufswe committed Nov 29, 2024
1 parent 6e96ada commit f667474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/pie-toast-provider/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class PieToastProvider extends RtlMixin(LitElement) implements ToastProvi
?isDismissible="${_currentToast.isDismissible}"
?isMultiline="${_currentToast.isMultiline}"
.leadingAction="${_currentToast.leadingAction}"
.duration="${_currentToast.duration}"
.duration="${typeof _currentToast.duration === 'undefined' ? nothing : _currentToast.duration}"
@pie-toast-close="${_dismissToast}"
@pie-toast-open="${_currentToast.onPieToastOpen}"
@pie-toast-leading-action-click="${_currentToast.onPieToastLeadingActionClick}">
Expand Down

0 comments on commit f667474

Please sign in to comment.