Skip to content

Commit

Permalink
Small refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
marcominerva committed Mar 29, 2023
1 parent 1548898 commit 0ca4e1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/ChatGptBlazor.Wasm/Components/ChatGptStream.razor
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@

private bool CanSendMessage()
=> !string.IsNullOrWhiteSpace(message) && !isAsking;


private async Task OnTypingMessageAsync(KeyboardEventArgs keyboardEventArgs)
{
if (keyboardEventArgs.Code is "Enter")
{
await AskAsync();
}
}

private async Task AskAsync()
Expand Down

0 comments on commit 0ca4e1c

Please sign in to comment.