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
@@ -23,7 +23,7 @@ export default class Note extends SymptomView {
symptomName = 'note'
onBackButtonPress() {
autoSave = () => {
if (!this.state.currentValue) {
this.deleteSymptomEntry()
return