Don't crash on missing temperature value
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user