Skip to content

Commit bfa0b4d

Browse files
committed
Fix profile option appearing for not found players
1 parent 63c6044 commit bfa0b4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Client/Components/Pages/Search.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
{
148148
var playerGuid = await Http.GetAsync("/api/Data/has-profile?username=" + loadedReplays.Query);
149149
ProfileFound = await playerGuid.Content.ReadFromJsonAsync<PlayerData>();
150+
if (ProfileFound.PlayerGuid == Guid.Empty) ProfileFound = null;
150151
}
151152

152153
SearchResult = loadedReplays;

0 commit comments

Comments
 (0)