Skip to content

Commit dbfd2dc

Browse files
committed
Added dropdown state and used it to conditionally render the dropdown
1 parent cf2124e commit dbfd2dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Components/forms/inputs/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export default class VolunteerForm extends Component {
2424
interestedInCYF,
2525
industry,
2626
hearAboutCYF,
27+
hearAboutCYFFromEmployer,
2728
onChangeCheckList,
2829
guidePeople,
2930
techSkill,
@@ -119,7 +120,7 @@ export default class VolunteerForm extends Component {
119120
isEmpty={errors.hearAboutCYF}
120121
label="Where did you hear about Code Your Future?"
121122
/>
122-
{hearAboutCYF === 'Employer' && (
123+
{hearAboutCYFFromEmployer && (
123124
<DropDown
124125
onChange={onChange}
125126
value={employer}

0 commit comments

Comments
 (0)