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

Add '.0' for integers

parent 7725f1be
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ export default class Temp extends Component {
if (temp) {
const [integer, fractional] = temp.value.toString().split('.')
this.state.integer = integer
this.state.fractional = fractional
this.state.fractional = fractional || '0'
} else {
const prevTemp = getPreviousTemperature(this.cycleDay)
if (prevTemp) {
......
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