Skip to content

Commit

Permalink
Fix profile option appearing for not found players
Browse files Browse the repository at this point in the history
  • Loading branch information
Simyon264 committed May 1, 2024
1 parent 63c6044 commit bfa0b4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Client/Components/Pages/Search.razor
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
{
var playerGuid = await Http.GetAsync("/api/Data/has-profile?username=" + loadedReplays.Query);
ProfileFound = await playerGuid.Content.ReadFromJsonAsync<PlayerData>();
if (ProfileFound.PlayerGuid == Guid.Empty) ProfileFound = null;
}

SearchResult = loadedReplays;
Expand Down

0 comments on commit bfa0b4d

Please sign in to comment.