Fixes the cycle day data is not being passed to the symptom view

This commit is contained in:
Sofiya Tepikin
2019-08-22 21:03:11 +02:00
parent 16cc2cef5c
commit 525defa1c9
3 changed files with 15 additions and 10 deletions
+3 -2
View File
@@ -33,7 +33,8 @@ class CycleDayOverView extends Component {
}
navigate(symptom) {
this.props.navigate(symptom)
const { cycleDay } = this.state
this.props.navigate(symptom, cycleDay)
}
render() {
@@ -77,7 +78,7 @@ class CycleDayOverView extends Component {
key={symptom}
symptom={symptom}
symptomData={symptomData}
onPress={() => this.navigate(symptomEditView)}
onPress={() => this.navigate(symptomEditView, symptomData)}
disabled={dateInFuture}
/>)
})