diff --git a/client/src/components/Chat/Input/AskUserQuestionPopover.tsx b/client/src/components/Chat/Input/AskUserQuestionPopover.tsx index 0a23bdd4e0..880be0d70b 100644 --- a/client/src/components/Chat/Input/AskUserQuestionPopover.tsx +++ b/client/src/components/Chat/Input/AskUserQuestionPopover.tsx @@ -14,19 +14,8 @@ import { cn } from '~/utils'; */ function AskUserQuestionPopoverContent({ conversationId }: { conversationId: string }) { const localize = useLocalize(); - const { - liveAsk, - active, - options, - selected, - setSelected, - otherText, - setOtherText, - canSubmit, - submit, - dismiss, - otherLabel, - } = useAskAnswerMode(conversationId); + const { liveAsk, active, options, selected, setSelected, canSubmit, submit, dismiss } = + useAskAnswerMode(conversationId); if (!active || !liveAsk) { return null; @@ -71,42 +60,6 @@ function AskUserQuestionPopoverContent({ conversationId }: { conversationId: str {option.label} ))} -
- {options.length > 0 && ( - - {options.length + 1} - - )} - { - setOtherText(e.target.value); - setSelected('other'); - }} - onFocus={() => setSelected('other')} - onKeyDown={(e) => { - if (e.key === 'Enter' && canSubmit) { - e.preventDefault(); - submit(); - } else if (e.key === 'Escape') { - dismiss(); - } - }} - placeholder={ - otherLabel ?? - (options.length > 0 - ? localize('com_ui_something_else') - : localize('com_ui_your_answer')) - } - className="flex-1 border-0 bg-transparent text-sm text-text-primary placeholder:text-text-secondary focus:outline-none" - aria-label={localize('com_ui_your_answer')} - /> -