From f667474326b8189656bcb299f6f15515b35b025d Mon Sep 17 00:00:00 2001 From: Raouf Date: Fri, 29 Nov 2024 17:05:15 +0100 Subject: [PATCH] fix(pie-toast-provider): DSW-2222 ensure duration is parsed correctly --- packages/components/pie-toast-provider/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/pie-toast-provider/src/index.ts b/packages/components/pie-toast-provider/src/index.ts index 5c0f284b7b..4083a3518b 100644 --- a/packages/components/pie-toast-provider/src/index.ts +++ b/packages/components/pie-toast-provider/src/index.ts @@ -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}">