Skip to content

Commit 2a527b2

Browse files
refactor: remove the drop-down State based on the review
1 parent d6a5e89 commit 2a527b2

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Components/forms/index.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,6 @@ class Forms extends Component {
100100
err: null
101101
})
102102
}
103-
if (name === 'hearAboutCYF') {
104-
this.setState({
105-
displayDropdown: value === 'Employer'
106-
})
107-
}
108103
}
109104

110105
validateForm = values => {
@@ -160,7 +155,6 @@ class Forms extends Component {
160155
industry,
161156
hearAboutCYF,
162157
employer,
163-
displayDropdown,
164158
guidePeople,
165159
techSkill,
166160
otherSkill,
@@ -174,7 +168,7 @@ class Forms extends Component {
174168
lastName,
175169
email,
176170
cityId,
177-
employer: displayDropdown ? employer : true,
171+
employer: hearAboutCYF === 'Employer' ? employer : true,
178172
interestedInVolunteer,
179173
tel,
180174
agreeToTOU,

0 commit comments

Comments
 (0)