Lint rule react prop types addition

This commit is contained in:
Maria Zadnepryanets
2020-03-11 20:19:45 +00:00
committed by Sofiya Tepikin
parent 8444d466db
commit 47379d7a1e
26 changed files with 292 additions and 184 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ class Desire extends Component {
const symptom = 'desire'
const { cycleDay } = props
const defaultSymptomData = { value: '' }
const defaultSymptomData = { value: null }
const symptomData =
cycleDay && cycleDay[symptom] ? cycleDay[symptom] : defaultSymptomData