From 6d8cfeff5a5f02721dedad4416cfd2aa4f872602 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Tue, 13 Jan 2026 16:23:00 +0000 Subject: [PATCH] fix: Enable forecast checkbox for multiple choice questions Remove the restriction that prevented the 'include your current forecast' checkbox from appearing on multiple choice questions. The feature was already fully supported by the backend and rendering components but was artificially disabled in the form logic. Fixes #4053 Co-authored-by: Sylvain --- front_end/src/components/comment_feed/comment.tsx | 1 - front_end/src/components/comment_feed/index.tsx | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/front_end/src/components/comment_feed/comment.tsx b/front_end/src/components/comment_feed/comment.tsx index 57ceaf8f14..8bf54d49e1 100644 --- a/front_end/src/components/comment_feed/comment.tsx +++ b/front_end/src/components/comment_feed/comment.tsx @@ -285,7 +285,6 @@ const Comment: FC = ({ const canIncludeForecastInReply = useMemo(() => { if (!postData?.question) return false; - if (postData.question.type === QuestionType.MultipleChoice) return false; const latest = postData.question.my_forecasts?.latest; return !!latest && isForecastActive(latest); }, [postData]); diff --git a/front_end/src/components/comment_feed/index.tsx b/front_end/src/components/comment_feed/index.tsx index bec49cf4c1..c9e137efd3 100644 --- a/front_end/src/components/comment_feed/index.tsx +++ b/front_end/src/components/comment_feed/index.tsx @@ -79,11 +79,8 @@ function shouldIncludeForecast(postData: PostWithForecasts | undefined) { return false; } - // we can link forecast only for date, binary and numeric questions + // we can link forecast for all question types if (postData.question) { - if (postData.question.type === QuestionType.MultipleChoice) { - return false; - } const latest = postData.question.my_forecasts?.latest; return !!latest && isForecastActive(latest); }