Add '.0' for integers
This commit is contained in:
1 parent
7725f1be14
commit
3a162ca0cc
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user