diff --git a/components/cycle-day/symptoms/temperature.js b/components/cycle-day/symptoms/temperature.js index 11961a9c151f2cf376c8f13a59b974e8bbb4730f..7296883201ddb475bb2aa0ba5dac3bc0c6513144 100644 --- a/components/cycle-day/symptoms/temperature.js +++ b/components/cycle-day/symptoms/temperature.js @@ -12,6 +12,8 @@ import { getPreviousTemperature, saveSymptom } from '../../../db' import styles from '../../../styles' import { LocalTime, ChronoUnit } from 'js-joda' +const MINUTES = ChronoUnit.MINUTES + export default class Temp extends Component { constructor(props) { super(props) @@ -32,7 +34,7 @@ export default class Temp extends Component { this.state = { currentValue: initialValue, exclude: temp ? temp.exclude : false, - time: this.time || LocalTime.now().truncatedTo(ChronoUnit.MINUTES).toString(), + time: this.time || LocalTime.now().truncatedTo(MINUTES).toString(), isTimePickerVisible: false } }