From 5688d57be7360535beea72b5b9c7d0ba1f8a7451 Mon Sep 17 00:00:00 2001 From: amit-s19 Date: Mon, 19 Feb 2024 10:52:18 +0530 Subject: [PATCH] using "text" key in adivsory options --- apps/amakrushi/src/components/chat-message-item/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/amakrushi/src/components/chat-message-item/index.tsx b/apps/amakrushi/src/components/chat-message-item/index.tsx index 14e1390..542ca4b 100644 --- a/apps/amakrushi/src/components/chat-message-item/index.tsx +++ b/apps/amakrushi/src/components/chat-message-item/index.tsx @@ -160,7 +160,7 @@ const ChatMessageItem: FC = ({ 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); @@ -182,7 +182,7 @@ const ChatMessageItem: FC = ({ message, onSend }) => { ? 'var(--font)' : 'var(--secondarygreen)', }}> -
{isWeather ? choice?.textInEnglish : choice}
+
{isWeather ? choice?.text : choice}