Skip to content
Snippets Groups Projects
Commit e1fa656b authored by Julia Friesel's avatar Julia Friesel
Browse files

Shorten line length in temperature

parent da29c275
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,8 @@ import { getPreviousTemperature, saveSymptom } from '../../../db' ...@@ -12,6 +12,8 @@ import { getPreviousTemperature, saveSymptom } from '../../../db'
import styles from '../../../styles' import styles from '../../../styles'
import { LocalTime, ChronoUnit } from 'js-joda' import { LocalTime, ChronoUnit } from 'js-joda'
const MINUTES = ChronoUnit.MINUTES
export default class Temp extends Component { export default class Temp extends Component {
constructor(props) { constructor(props) {
super(props) super(props)
...@@ -32,7 +34,7 @@ export default class Temp extends Component { ...@@ -32,7 +34,7 @@ export default class Temp extends Component {
this.state = { this.state = {
currentValue: initialValue, currentValue: initialValue,
exclude: temp ? temp.exclude : false, exclude: temp ? temp.exclude : false,
time: this.time || LocalTime.now().truncatedTo(ChronoUnit.MINUTES).toString(), time: this.time || LocalTime.now().truncatedTo(MINUTES).toString(),
isTimePickerVisible: false isTimePickerVisible: false
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment