Skip to content

Commit

Permalink
using "text" key in adivsory options
Browse files Browse the repository at this point in the history
  • Loading branch information
amit-s19 committed Feb 19, 2024
1 parent 861fb6c commit 5688d57
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 5688d57

Please sign in to comment.