diff --git a/packages/fern-docs/ui/src/feedback/FeedbackForm.tsx b/packages/fern-docs/ui/src/feedback/FeedbackForm.tsx index 4a97b31a18..c1709a8aee 100644 --- a/packages/fern-docs/ui/src/feedback/FeedbackForm.tsx +++ b/packages/fern-docs/ui/src/feedback/FeedbackForm.tsx @@ -43,17 +43,19 @@ export const FeedbackForm: FC = ({ const [showEmailInput, setShowEmailInput] = useAtom(SHOW_EMAIL_INPUT_ATOM); const [email, setEmail] = useAtom(EMAIL_ATOM); - const legend = isHelpful - ? "What did you like?" - : isHelpful === "no" - ? "What went wrong?" - : "Feedback"; - const feedbackOptions = useMemo(() => { - const options = isHelpful - ? POSITIVE_FEEDBACK + const legend = + isHelpful === "yes" + ? "What did you like?" : isHelpful === "no" - ? NEGATIVE_FEEDBACK - : []; + ? "What went wrong?" + : "Feedback"; + const feedbackOptions = useMemo(() => { + const options = + isHelpful === "yes" + ? POSITIVE_FEEDBACK + : isHelpful === "no" + ? NEGATIVE_FEEDBACK + : []; const transformedOptions: FernDropdown.Option[] = options.map( (option): FernDropdown.Option => ({ type: "value",