Remove unused modals service and display.

This commit is contained in:
2023-07-07 19:14:53 -05:00
parent 8884d15d6e
commit 3f318b46de
11 changed files with 11 additions and 135 deletions

View File

@@ -75,9 +75,9 @@ public class AccountManager
public async Task<bool> TryLoginSilentAsync()
{
var platform = await localStorage.GetAccountPlatform();
Console.WriteLine($"Try Login Silent - {platform}");
if (platform == WhichAccountPlatform.Guest)
{
Console.WriteLine($"Try Login Silent - {platform}");
var response = await shogiApi.GetToken(WhichAccountPlatform.Guest);
if (response != null)
{
@@ -91,6 +91,7 @@ public class AccountManager
}
else if (platform == WhichAccountPlatform.Microsoft)
{
Console.WriteLine($"Try Login Silent - {platform}");
var state = await authState.GetAuthenticationStateAsync();
if (state.User?.Identity?.Name != null)
{