Remove sessions from <GameBrowser /> after logout.

This commit is contained in:
2023-05-14 19:53:24 -05:00
parent 1c0430746d
commit f21a170eb1

View File

@@ -115,7 +115,13 @@
Task LoginChangedEvent_FetchSessions(LoginEventArgs args)
{
if (args.User != null)
if (args.User == null)
{
joinedSessions = Array.Empty<SessionMetadata>();
otherSessions = Array.Empty<SessionMetadata>();
StateHasChanged();
}
else
{
return FetchSessions();
}