diff --git a/Directory.Packages.props b/Directory.Packages.props index 73d0324..440d18c 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,7 +5,7 @@ enable - + @@ -22,11 +22,11 @@ - - + + - + diff --git a/src/ProfanityFilter.Action/ProfanityFilter.Action.csproj b/src/ProfanityFilter.Action/ProfanityFilter.Action.csproj index 0a50243..d24f4fe 100644 --- a/src/ProfanityFilter.Action/ProfanityFilter.Action.csproj +++ b/src/ProfanityFilter.Action/ProfanityFilter.Action.csproj @@ -8,6 +8,7 @@ true true false + true $(NoWarn);NU5104;IL2104; diff --git a/src/ProfanityFilter.WebApi/Components/Pages/Home.razor.cs b/src/ProfanityFilter.WebApi/Components/Pages/Home.razor.cs index b1409cb..491d979 100644 --- a/src/ProfanityFilter.WebApi/Components/Pages/Home.razor.cs +++ b/src/ProfanityFilter.WebApi/Components/Pages/Home.razor.cs @@ -54,7 +54,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender) return; } - if (await LocalStorage.GetItemAsync("selected-strategy") is { } strategy && + if (await LocalStorage.GetItemAsync("selected-strategy") is { } strategy && Enum.TryParse(strategy, out var selectedStrategy)) { _selectedStrategy = selectedStrategy;