No values for day now don't display empty elements anymore but sets them to null
This commit is contained in:
+2
-2
@@ -26,7 +26,7 @@ export default class DayView extends Component {
|
|||||||
bleedingLabel = `Bleeding: ${labels[bleedingValue]}`
|
bleedingLabel = `Bleeding: ${labels[bleedingValue]}`
|
||||||
if (cycleDay.bleeding.exclude) bleedingLabel += " (Excluded)"
|
if (cycleDay.bleeding.exclude) bleedingLabel += " (Excluded)"
|
||||||
} else {
|
} else {
|
||||||
bleedingLabel = ''
|
bleedingLabel = null
|
||||||
}
|
}
|
||||||
const temperatureValue = cycleDay.temperature && cycleDay.temperature.value
|
const temperatureValue = cycleDay.temperature && cycleDay.temperature.value
|
||||||
let temperatureLabel
|
let temperatureLabel
|
||||||
@@ -34,7 +34,7 @@ export default class DayView extends Component {
|
|||||||
temperatureLabel = `Temperature: ${temperatureValue}`
|
temperatureLabel = `Temperature: ${temperatureValue}`
|
||||||
if (cycleDay.temperature.exclude) temperatureLabel += " (Excluded)"
|
if (cycleDay.temperature.exclude) temperatureLabel += " (Excluded)"
|
||||||
} else {
|
} else {
|
||||||
temperatureLabel = ''
|
temperatureLabel = null
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user