From 7f2f2d05deb648a5398dfb19f43713aeba5a386e Mon Sep 17 00:00:00 2001 From: Grace Fazakerley Date: Tue, 19 Mar 2024 15:45:49 +0000 Subject: [PATCH] Fix null reference exception --- src/Blazored.Toast/BlazoredToasts.razor.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Blazored.Toast/BlazoredToasts.razor.cs b/src/Blazored.Toast/BlazoredToasts.razor.cs index 926ed74..b25003c 100644 --- a/src/Blazored.Toast/BlazoredToasts.razor.cs +++ b/src/Blazored.Toast/BlazoredToasts.razor.cs @@ -67,6 +67,7 @@ private ToastSettings BuildCustomToastSettings(Action? settings) instanceToastSettings.PauseProgressOnHover ??= PauseProgressOnHover; instanceToastSettings.ExtendedTimeout ??= ExtendedTimeout; instanceToastSettings.Position ??= Position; + instanceToastSettings.ShowProgressBar ??= ShowProgressBar; return instanceToastSettings; }