Auto save whenever symptom view updates

This commit is contained in:
Julia Friesel
2019-05-26 07:39:15 +02:00
parent f8eef66810
commit bc358bd9ed
9 changed files with 15 additions and 18 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ export default class Bleeding extends SymptomView {
symptomName = 'bleeding'
onBackButtonPress() {
autoSave = () => {
if (typeof this.state.currentValue != 'number') {
this.deleteSymptomEntry()
return