From 0be095d583ef0e086a81ae14ad2557a59641411c Mon Sep 17 00:00:00 2001 From: ittoview Date: Wed, 13 May 2026 19:18:34 +0100 Subject: [PATCH] fix: disable domain option only when fully complete --- src/pages/PerformanceDomainPracticePage.tsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/pages/PerformanceDomainPracticePage.tsx b/src/pages/PerformanceDomainPracticePage.tsx index 6ee5093..07fb32c 100644 --- a/src/pages/PerformanceDomainPracticePage.tsx +++ b/src/pages/PerformanceDomainPracticePage.tsx @@ -325,11 +325,10 @@ export default function PerformanceDomainPracticePage() { } const expectedGoalProgress = getKindProgress('expectedGoal') const keyPointProgress = getKindProgress('keyPoint') - const currentKindProgress = currentQuestion?.kind === 'expectedGoal' - ? expectedGoalProgress - : keyPointProgress - const currentKindDone = currentKindProgress.total > 0 && currentKindProgress.completed >= currentKindProgress.total - const optionDisabled = isAnswerShown || currentKindDone + const expectedGoalDone = expectedGoalProgress.total > 0 && expectedGoalProgress.completed >= expectedGoalProgress.total + const keyPointDone = keyPointProgress.total > 0 && keyPointProgress.completed >= keyPointProgress.total + const domainDone = expectedGoalDone && keyPointDone + const optionDisabled = isAnswerShown || domainDone return (