From 7cd9a0731a950a10a223455b0808e8a973b006b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sig=20Narv=C3=A1ez?= Date: Sat, 4 May 2024 18:50:06 -0700 Subject: [PATCH] Fix for #137 --- website/Pages/EventRegister.razor | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/website/Pages/EventRegister.razor b/website/Pages/EventRegister.razor index 6dda914..2a0db67 100644 --- a/website/Pages/EventRegister.razor +++ b/website/Pages/EventRegister.razor @@ -119,7 +119,7 @@ Register @@ -235,7 +235,7 @@ { if (string.IsNullOrEmpty(_player.Name)) { - _errorMessage = "[Enter your name!]"; + _errorMessage = "[Enter your Nickname!]"; return; } @@ -243,11 +243,10 @@ var args = new Dictionary { - { "Name", _player.Name } + { "name", _player.Name } }; string urlWithQuery = UrlHelper.BuildUrlWithQuery(Constants.RestServiceEndpointPlayers, args); - var players = await _restClient.GetJsonAsync>(urlWithQuery); var filteredPlayers = players!.FindAll(p => p.Name!.Equals(_player.Name)); var existingPlayer = filteredPlayers.FirstOrDefault();