Merge branch 'bug-cannot-enter-note-in-future' into 'master'

Bug fix: allows to enter note in the future

See merge request bloodyhealth/drip!288
This commit is contained in:
bl00dymarie
2020-05-02 15:22:18 +00:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ class CycleDayOverView extends Component {
symptom={symptom}
symptomData={symptomData}
onPress={() => this.props.navigate(symptomEditView)}
disabled={dateInFuture}
disabled={dateInFuture && symptom !== 'note'}
/>)
})
}
+1 -1
View File
@@ -11,7 +11,7 @@ import { saveSymptom } from '../../../db'
class Note extends Component {
static propTypes = {
cycleDay: PropTypes.object.isRequired,
cycleDay: PropTypes.object,
date: PropTypes.string.isRequired
}