From e7d3a304f2558e3d49e910a5721b8b5faa16f8b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Pilgaard=20Gr=C3=B8ndahl?= Date: Sun, 18 Feb 2024 21:41:18 +0100 Subject: [PATCH] Update DeleteUserComponent.razor --- src/web/Jordnaer/Features/Profile/DeleteUserComponent.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/Jordnaer/Features/Profile/DeleteUserComponent.razor b/src/web/Jordnaer/Features/Profile/DeleteUserComponent.razor index be08d353..ca89743a 100644 --- a/src/web/Jordnaer/Features/Profile/DeleteUserComponent.razor +++ b/src/web/Jordnaer/Features/Profile/DeleteUserComponent.razor @@ -56,7 +56,7 @@ { var authState = await AuthenticationState; _userEmail = authState.User.FindFirstValue(ClaimTypes.Email)!; - _currentUserId = authState.User.GetId(); + _currentUserId = authState.User.GetId()!; } private void OpenDialog() => _dialogIsOpen = true;