diff --git a/ShoppingAssistantWebClient.Web/Pages/Chat.razor.cs b/ShoppingAssistantWebClient.Web/Pages/Chat.razor.cs index 9133e0e..99eee0a 100644 --- a/ShoppingAssistantWebClient.Web/Pages/Chat.razor.cs +++ b/ShoppingAssistantWebClient.Web/Pages/Chat.razor.cs @@ -40,7 +40,7 @@ public partial class Chat : ComponentBase protected override async Task OnInitializedAsync() { try{ - var input = _searchServise.firstMassage; + var input = _searchServise.FirstMessage; if (input!=null){ @@ -65,7 +65,7 @@ public partial class Chat : ComponentBase }; var response = await _apiClient.QueryAsync(request); - _searchServise.SetFirstMassage(null); + _searchServise.SetFirstMessage(null); isLoading = false; await UpdateSideMenu(wishlistId); StateHasChanged(); diff --git a/ShoppingAssistantWebClient.Web/Pages/Index.razor.cs b/ShoppingAssistantWebClient.Web/Pages/Index.razor.cs index fdf4235..c6cd6ab 100644 --- a/ShoppingAssistantWebClient.Web/Pages/Index.razor.cs +++ b/ShoppingAssistantWebClient.Web/Pages/Index.razor.cs @@ -62,7 +62,7 @@ namespace ShoppingAssistantWebClient.Web.Pages string wishlistId = chatId; - _searchServise.SetFirstMassage(inputValue); + _searchServise.SetFirstMessage(inputValue); await UpdateSideMenu(wishlistId); var url = $"/chat/{chatId}"; diff --git a/ShoppingAssistantWebClient.Web/Services/SearchService.cs b/ShoppingAssistantWebClient.Web/Services/SearchService.cs index 93b64fb..7a2f2f8 100644 --- a/ShoppingAssistantWebClient.Web/Services/SearchService.cs +++ b/ShoppingAssistantWebClient.Web/Services/SearchService.cs @@ -11,7 +11,7 @@ public class SearchService Products = products; } - public void SetFirstMassage(string message) { + public void SetFirstMessage(string message) { FirstMessage = message; } } \ No newline at end of file