Skip to content

Commit

Permalink
Fix/new btn response (#228)
Browse files Browse the repository at this point in the history
* Allow selecting multiple crops

* Added throttle for selecting options

* Upgrade location capture module

* added mode in context

* Button changes for new response format

* reduced settimeout to 4 seconds

* using "text" key in adivsory options
  • Loading branch information
amit-s19 committed Feb 27, 2024
1 parent 0f7ca39 commit 526348a
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 526348a

Please sign in to comment.