From 3ff996e9466905cc6f8a20f708185b7f58d13b6f Mon Sep 17 00:00:00 2001 From: Julia Friesel Date: Mon, 13 May 2019 19:07:46 +0200 Subject: [PATCH] Don't crash on missing temperature value --- components/cycle-day/symptoms/temperature.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/cycle-day/symptoms/temperature.js b/components/cycle-day/symptoms/temperature.js index c2e2575..d053957 100644 --- a/components/cycle-day/symptoms/temperature.js +++ b/components/cycle-day/symptoms/temperature.js @@ -56,7 +56,7 @@ export default class Temp extends SymptomView { symptomName = 'temperature' onBackButtonPress() { - if (this.state.temperature === '') { + if (typeof this.state.temperature != 'string' || this.state.temperature === '') { this.deleteSymptomEntry() return }