Skip to content

Commit

Permalink
No underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl committed Jul 15, 2023
1 parent b8ffb08 commit 77959e2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Todo.Web/Server/App.razor
Expand Up @@ -18,7 +18,7 @@
<body>
<div class="container">
<main role="main" class="pb-3">
<TodoApp CurrentUser="@_userName" SocialProviders="@_providerNames" @rendermode="@RenderMode.WebAssembly" />
<TodoApp CurrentUser="@userName" SocialProviders="@providerNames" @rendermode="@RenderMode.WebAssembly" />
</main>
</div>

Expand All @@ -34,13 +34,13 @@
</html>

@code {
string[] _providerNames = Array.Empty<string>();
string? _userName;
string[] providerNames = Array.Empty<string>();
string? userName;

protected override async Task OnInitializedAsync()
{
var authState = await authStateProvider.GetAuthenticationStateAsync();
_userName = authState?.User.Identity?.Name;
_providerNames = await providers.GetProviderNamesAsync() ?? Array.Empty<string>();
userName = authState?.User.Identity?.Name;
providerNames = await providers.GetProviderNamesAsync() ?? Array.Empty<string>();
}
}

0 comments on commit 77959e2

Please sign in to comment.