From ae7391ecab1c4bda5b38cc6296ff518d6833c6a0 Mon Sep 17 00:00:00 2001 From: ittoview Date: Wed, 13 May 2026 19:36:00 +0100 Subject: [PATCH] fix: scope option disable logic --- src/pages/PerformanceDomainPracticePage.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pages/PerformanceDomainPracticePage.tsx b/src/pages/PerformanceDomainPracticePage.tsx index bfb40d1..ba977b8 100644 --- a/src/pages/PerformanceDomainPracticePage.tsx +++ b/src/pages/PerformanceDomainPracticePage.tsx @@ -328,8 +328,13 @@ export default function PerformanceDomainPracticePage() { const expectedGoalDone = expectedGoalProgress.total > 0 && expectedGoalProgress.completed >= expectedGoalProgress.total const keyPointDone = keyPointProgress.total > 0 && keyPointProgress.completed >= keyPointProgress.total const domainDone = expectedGoalDone && keyPointDone - const shouldKeepDisabled = domainDone && !shouldHighlightCorrect && !isWrongSelected - const optionDisabled = isAnswerShown || domainDone + const scopedDone = progress.scope === 'expectedGoal' + ? expectedGoalDone + : progress.scope === 'keyPoint' + ? keyPointDone + : domainDone + const shouldKeepDisabled = scopedDone && !shouldHighlightCorrect && !isWrongSelected + const optionDisabled = isAnswerShown || scopedDone return (