diff --git a/components/cycle-day/temperature.js b/components/cycle-day/temperature.js index 653133a..d0f571b 100644 --- a/components/cycle-day/temperature.js +++ b/components/cycle-day/temperature.js @@ -50,7 +50,12 @@ class Temperature extends Component { } onChangeTemperature = (value) => { - this.setState({ value, shouldShowSuggestion: false }) + if (!Number(value)) return false + + this.setState({ + value: value.trim(), + shouldShowSuggestion: false + }) } onShowTimePicker = () => {