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;