In UsersPage.razor UserDetailPage.razor, the functions get incorrect value for _currentUserId :
private async Task ResolveCurrentUser()
{
try
{
var authState = await AuthenticationStateProvider.GetAuthenticationStateAsync();
_currentUserId = authState.User.FindFirst(ClaimTypes.NameIdentifier)?.Value;
}
catch
{
// Authentication state unavailable - user remains null (not logged in)
}
}
In UsersPage.razor UserDetailPage.razor, the functions get incorrect value for _currentUserId :