fix: disable 'select a goal' from goal dropdown when a goal has been selected (#755)

* hide the second and third portion of skills form if currentGoal is false
This commit is contained in:
Jason Wesson
2023-05-23 07:57:25 -07:00
committed by GitHub
parent 0d9a39afd7
commit 53985e94d8
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ const GoalDropdown = () => {
onChange={handleGoalSelect}
data-testid="goal-select-dropdown"
>
<option value="">{formatMessage(messages.selectLearningGoal)}</option>
<option value="" disabled={currentGoal}>{formatMessage(messages.selectLearningGoal)}</option>
<option>{formatMessage(messages.learningGoalStartCareer)}</option>
<option>{formatMessage(messages.learningGoalAdvanceCareer)}</option>
<option>{formatMessage(messages.learningGoalChangeCareer)}</option>

View File

@@ -27,7 +27,7 @@ const SelectPreferences = () => {
<JobTitleSelect />
)}
{currentJobTitle && (
{currentGoal && currentJobTitle && (
<CareerInterestSelect />
)}
</Stack>