Skip to content

Commit

Permalink
Fix/new btn response (#231)
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

* Scroll after selecting option

* removed hardcoded advisory text
  • Loading branch information
amit-s19 authored Feb 21, 2024
1 parent 5ce08a3 commit 9e556e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/amakrushi/src/components/chat-message-item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,7 @@ const ChatMessageItem: FC<ChatMessageItemPropType> = ({ message, onSend }) => {
}}>
{`\n` +
JSON.parse(content?.text)?.generalAdvice +
`\n\n` +
t('message.options')}
`\n\n` + JSON.parse(content?.text)?.buttonDescription}
{getLists({
choices: JSON.parse(content?.text)?.buttons,
isWeather: true
Expand Down

0 comments on commit 9e556e1

Please sign in to comment.