Skip to content
Snippets Groups Projects
Commit 61e44ceb authored by emelko's avatar emelko
Browse files

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

parent 724e73ad
No related branches found
No related tags found
No related merge requests found
......@@ -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 (
......
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