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

Fix label reference

parent a9e22c94
Branches
Tags
No related merge requests found
...@@ -14,7 +14,7 @@ import * as labels from '../../i18n/en/cycle-day' ...@@ -14,7 +14,7 @@ import * as labels from '../../i18n/en/cycle-day'
import AppText from '../app-text' import AppText from '../app-text'
import DripIcon from '../../assets/drip-icons' import DripIcon from '../../assets/drip-icons'
const bleedingLabels = labels.bleeding const bleedingLabels = labels.bleeding.labels
const feelingLabels = labels.mucus.feeling.categories const feelingLabels = labels.mucus.feeling.categories
const textureLabels = labels.mucus.texture.categories const textureLabels = labels.mucus.texture.categories
const openingLabels = labels.cervix.opening.categories const openingLabels = labels.cervix.opening.categories
...@@ -56,7 +56,7 @@ export default class CycleDayOverView extends Component { ...@@ -56,7 +56,7 @@ export default class CycleDayOverView extends Component {
const l = { const l = {
bleeding: bleeding => { bleeding: bleeding => {
if (isNumber(bleeding.value)) { if (isNumber(bleeding.value)) {
let bleedingLabel = `${bleedingLabels[bleeding.value]}` let bleedingLabel = bleedingLabels[bleeding.value]
if (bleeding.exclude) bleedingLabel = "( " + bleedingLabel + " )" if (bleeding.exclude) bleedingLabel = "( " + bleedingLabel + " )"
return bleedingLabel return bleedingLabel
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment