Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/new btn response #228

Merged
merged 10 commits into from
Feb 19, 2024
4 changes: 2 additions & 2 deletions apps/amakrushi/src/components/chat-message-item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const ChatMessageItem: FC<ChatMessageItemPropType> = ({ message, onSend }) => {
context?.setMessages([]);
}
if (isWeather)
context?.sendMessage(choice?.textInEnglish, false, true, choice);
context?.sendMessage(choice?.text, false, true, choice);
else
context?.sendMessage(choice);
setOptionDisabled(true);
Expand All @@ -182,7 +182,7 @@ const ChatMessageItem: FC<ChatMessageItemPropType> = ({ message, onSend }) => {
? 'var(--font)'
: 'var(--secondarygreen)',
}}>
<div>{isWeather ? choice?.textInEnglish : choice}</div>
<div>{isWeather ? choice?.text : choice}</div>
<div style={{ marginLeft: 'auto' }}>
<RightIcon
width="30px"
Expand Down
Loading