diff --git a/src/DevBetterWeb.Web/Pages/Admin/User.cshtml b/src/DevBetterWeb.Web/Pages/Admin/User.cshtml index 35e14351..fcb9136c 100644 --- a/src/DevBetterWeb.Web/Pages/Admin/User.cshtml +++ b/src/DevBetterWeb.Web/Pages/Admin/User.cshtml @@ -206,7 +206,7 @@
- +
Links @@ -323,7 +323,7 @@ - @foreach (var item in Model.Invoices) + @foreach (var item in Model!.Invoices) { diff --git a/src/DevBetterWeb.Web/Pages/Admin/User.cshtml.cs b/src/DevBetterWeb.Web/Pages/Admin/User.cshtml.cs index 01c1b5ab..5cde144e 100644 --- a/src/DevBetterWeb.Web/Pages/Admin/User.cshtml.cs +++ b/src/DevBetterWeb.Web/Pages/Admin/User.cshtml.cs @@ -133,7 +133,7 @@ public async Task OnGetAsync(string userId) AddressHistory = member.AddressHistory.OrderByDescending(a => a.UpdatedOn).Select(a => new AddressHistoryViewModel { - Address = a.Address.ToString(), + Address = a.Address!.ToString(), UpdatedOn = a.UpdatedOn }).ToList();