Bugfix parsing only value of temp toString
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ export default class Temp extends Component {
|
|||||||
let initialValue
|
let initialValue
|
||||||
|
|
||||||
if(cycleDay.temperature) {
|
if(cycleDay.temperature) {
|
||||||
initialValue = cycleDay.temperature.toString()
|
initialValue = cycleDay.temperature.value.toString()
|
||||||
} else {
|
} else {
|
||||||
const prevTemp = getPreviousTemperature(cycleDay)
|
const prevTemp = getPreviousTemperature(cycleDay)
|
||||||
initialValue = prevTemp ? prevTemp.toString() : ''
|
initialValue = prevTemp ? prevTemp.toString() : ''
|
||||||
|
|||||||
Reference in New Issue
Block a user