diff --git a/BlazorSize/Resize/ResizeListener.cs b/BlazorSize/Resize/ResizeListener.cs index d49369a..7c6b0b4 100644 --- a/BlazorSize/Resize/ResizeListener.cs +++ b/BlazorSize/Resize/ResizeListener.cs @@ -15,7 +15,7 @@ public class ResizeListener : IDisposable, IResizeListener public ResizeListener(IJSRuntime jsRuntime, IOptions options = null) { - this.options = options.Value ?? new ResizeOptions(); + this.options = options?.Value ?? new ResizeOptions(); this.jsRuntime = jsRuntime; }