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 (