diff --git a/components/cycle-day/temperature.js b/components/cycle-day/temperature.js index 653133a65fe011a1730ad5ea0526a55052acfe8b..d0f571bfb36f8b23e826350ae5c729ea503c74c3 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 = () => {