Skip to content

Commit

Permalink
fix: Behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdotnet committed Feb 25, 2024
1 parent 3576cac commit 16ff395
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public async ValueTask StoreUserRecordAsync()
private async ValueTask GetAndStoreUserRecordAsync()
{
var userIdentity = (await authenticationStateProvider.GetAuthenticationStateAsync()).User.Identity;
if (userIdentity == null || userIdentity.IsAuthenticated)
if (userIdentity is { IsAuthenticated: true })
{
return;
}
Expand Down

0 comments on commit 16ff395

Please sign in to comment.