From bfa0b4dd9760c4f240318fd62b64d14491a14c79 Mon Sep 17 00:00:00 2001 From: Simon <63975668+Simyon264@users.noreply.github.com> Date: Wed, 1 May 2024 21:34:57 +0200 Subject: [PATCH] Fix profile option appearing for not found players --- Client/Components/Pages/Search.razor | 1 + 1 file changed, 1 insertion(+) diff --git a/Client/Components/Pages/Search.razor b/Client/Components/Pages/Search.razor index c753cbf..e39cb39 100644 --- a/Client/Components/Pages/Search.razor +++ b/Client/Components/Pages/Search.razor @@ -147,6 +147,7 @@ { var playerGuid = await Http.GetAsync("/api/Data/has-profile?username=" + loadedReplays.Query); ProfileFound = await playerGuid.Content.ReadFromJsonAsync(); + if (ProfileFound.PlayerGuid == Guid.Empty) ProfileFound = null; } SearchResult = loadedReplays;