From ea8b5132c8f7fe676475daac2a2dcad5395c96de Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Tue, 6 Jan 2026 13:48:15 +0000 Subject: [PATCH] fix: show user predictions on closed numeric and date questions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed the isForecastActive() check that was preventing user predictions from being displayed on closed numeric and date questions. The prediction data is available and should be shown regardless of question status. Fixes #4009 Co-authored-by: Sylvain 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- .../prediction_continuous_info.tsx | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/front_end/src/components/post_card/question_tile/prediction_continuous_info.tsx b/front_end/src/components/post_card/question_tile/prediction_continuous_info.tsx index 571722f47e..34b6a25e93 100644 --- a/front_end/src/components/post_card/question_tile/prediction_continuous_info.tsx +++ b/front_end/src/components/post_card/question_tile/prediction_continuous_info.tsx @@ -9,7 +9,6 @@ import ContinuousCPBar from "@/components/post_card/question_tile/continuous_cp_ import { useHideCP } from "@/contexts/cp_context"; import { QuestionStatus } from "@/types/post"; import { QuestionWithNumericForecasts, UserForecast } from "@/types/question"; -import { isForecastActive } from "@/utils/forecasts/helpers"; import { formatResolution } from "@/utils/formatters/resolution"; import { isSuccessfullyResolved } from "@/utils/questions/resolution"; @@ -82,19 +81,17 @@ const PredictionContinuousInfo: FC = ({ /> )} - {showMyPrediction && - question.my_forecasts?.latest && - isForecastActive(question.my_forecasts.latest) && ( -
- -
- )} + {showMyPrediction && question.my_forecasts?.latest && ( +
+ +
+ )} ); };