Separate the shorthand of each suggestion card from the prefilled text

This commit is contained in:
sabaimran
2024-12-21 20:46:57 -08:00
parent bf405f50d7
commit 45da6ec750
3 changed files with 25 additions and 12 deletions

View File

@@ -204,13 +204,7 @@ function ChatBodyData(props: ChatBodyDataProps) {
}, []);
function clickStepOneSuggestion(suggestion: StepOneSuggestion) {
let message_str = "";
let prompt =
suggestion.actionTagline.charAt(0).toLowerCase() + suggestion.actionTagline.slice(1);
message_str = prompt;
setPrefilledMessage(message_str);
setPrefilledMessage(suggestion.intent);
const stepTwoSuggestions = getStepTwoSuggestions(suggestion.type);
setSelectedStepOneSuggestion(suggestion);
setStepTwoSuggestionOptions(stepTwoSuggestions);