Don't crash on missing temperature value

This commit is contained in:
Julia Friesel
2019-05-13 19:07:46 +02:00
parent 6011bd9208
commit 3ff996e946
+1 -1
View File
@@ -56,7 +56,7 @@ export default class Temp extends SymptomView {
symptomName = 'temperature' symptomName = 'temperature'
onBackButtonPress() { onBackButtonPress() {
if (this.state.temperature === '') { if (typeof this.state.temperature != 'string' || this.state.temperature === '') {
this.deleteSymptomEntry() this.deleteSymptomEntry()
return return
} }