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

Fixing bleeding and temperature button label on cycle day overview

parent fb56fe4c
No related branches found
No related tags found
No related merge requests found
......@@ -47,8 +47,8 @@ export default class DayView extends Component {
let bleedingLabel
if (this.cycleDay.bleeding) {
const bleeding = this.cycleDay.bleeding
if (typeof bleeding === 'number') {
bleedingLabel = `${bleedingLabels[bleeding]}`
if (typeof bleeding.value === 'number') {
bleedingLabel = `${bleedingLabels[bleeding.value]}`
if (bleeding.exclude) bleedingLabel = "( " + bleedingLabel + " )"
}
} else {
......@@ -58,8 +58,8 @@ export default class DayView extends Component {
let temperatureLabel
if (this.cycleDay.temperature) {
const temperature = this.cycleDay.temperature
if (typeof temperature === 'number') {
temperatureLabel = `${temperature} °C - ${temperature.time}`
if (typeof temperature.value === 'number') {
temperatureLabel = `${temperature.value} °C - ${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