From e1fa656b8f9156d48995d3b11b9ea28460360442 Mon Sep 17 00:00:00 2001 From: Julia Friesel <julia.friesel@gmail.com> Date: Thu, 2 Aug 2018 10:23:27 +0200 Subject: [PATCH] Shorten line length in temperature --- components/cycle-day/symptoms/temperature.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/cycle-day/symptoms/temperature.js b/components/cycle-day/symptoms/temperature.js index 11961a9c..72968832 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 } } -- GitLab