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

Only show timestamp when it has a value

parent 6065470b
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,10 @@ export default class CycleDayOverView extends Component { ...@@ -60,7 +60,10 @@ export default class CycleDayOverView extends Component {
}, },
temperature: temperature => { temperature: temperature => {
if (isNumber(temperature.value)) { if (isNumber(temperature.value)) {
let temperatureLabel = `${temperature.value} °C - ${temperature.time}` let temperatureLabel = `${temperature.value} °C`
if (temperature.time) {
temperatureLabel = `${temperatureLabel} - ${temperature.time}`
}
if (temperature.exclude) { if (temperature.exclude) {
temperatureLabel = "( " + temperatureLabel + " )" temperatureLabel = "( " + temperatureLabel + " )"
} }
......
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