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

Merge branch '390-bug-temperature-timestamp-can-be-deleted' into 'master'

Only show timestamp when it has a value

Closes #390

See merge request bloodyhealth/drip!234
parents 6065470b 66285431
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,10 @@ export default class CycleDayOverView extends Component {
},
temperature: temperature => {
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) {
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