{activeQuestion.options.map((option, index) => {
const optionValue = option.value ?? option.label;
- const isOptimisticallySelected =
- optimisticSingleSelect?.questionId === activeQuestion.id &&
- optimisticSingleSelect.optionValue === optionValue;
- const isSelected =
- isOptimisticallySelected || draftSelectedOptions?.[index] === true;
+ const isSelected = draftSelectedOptions?.[index] === true;
const className = cn(
questionTextAlign,
"group flex w-full items-start gap-2.5 rounded-md bg-transparent py-1.5 ps-2 sm:ps-1.5 outline-none transition-colors duration-150 focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-primary/25",
@@ -318,7 +267,7 @@ const ComposerPendingUserInputCard = memo(function ComposerPendingUserInputCard(
) : null}
>
);
- // The preview sits outside the button: it can hold links, and a click on a single-select option advances.
+ // The preview sits outside the button because it can hold links.
return (