No values for day now don't display empty elements anymore but sets them to null

This commit is contained in:
emelko
2018-06-12 13:30:33 +02:00
parent 724e73ad14
commit 61e44ceb2f
+2 -2
View File
@@ -26,7 +26,7 @@ export default class DayView extends Component {
bleedingLabel = `Bleeding: ${labels[bleedingValue]}`
if (cycleDay.bleeding.exclude) bleedingLabel += " (Excluded)"
} else {
bleedingLabel = ''
bleedingLabel = null
}
const temperatureValue = cycleDay.temperature && cycleDay.temperature.value
let temperatureLabel
@@ -34,7 +34,7 @@ export default class DayView extends Component {
temperatureLabel = `Temperature: ${temperatureValue}`
if (cycleDay.temperature.exclude) temperatureLabel += " (Excluded)"
} else {
temperatureLabel = ''
temperatureLabel = null
}
return (