Skip to content

Commit c74a552

Browse files
MatildaAkotextbook
andauthored
Changed ternary condition to use a simple if statement
Co-authored-by: Jonathan Sharpe <[email protected]>
1 parent 357d29a commit c74a552

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Components/forms/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@ class Forms extends Component {
100100
err: null
101101
})
102102
}
103-
name === 'hearAboutCYF' &&
103+
if (name === 'hearAboutCYF') {
104104
this.setState({ hearAboutCYFFromEmployer: value === 'Employer' })
105+
}
105106
}
106107

107108
validateForm = values => {

0 commit comments

Comments
 (0)