Better naming for bleedin labels

This commit is contained in:
emelko
2018-07-13 23:01:07 +02:00
parent d89e103843
commit 0da3810aeb
2 changed files with 104 additions and 2 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ import {
} from 'react-native'
import styles from '../../styles'
import {
bleeding as labels,
bleeding as bleedingLabels,
mucusFeeling as feelingLabels,
mucusTexture as textureLabels,
mucusNFP as computeSensiplanMucusLabels,
@@ -44,7 +44,7 @@ export default class DayView extends Component {
const bleedingValue = this.cycleDay.bleeding && this.cycleDay.bleeding.value
let bleedingLabel
if (typeof bleedingValue === 'number') {
bleedingLabel = `${labels[bleedingValue]}`
bleedingLabel = `${bleedingLabels[bleedingValue]}`
if (this.cycleDay.bleeding.exclude) bleedingLabel = "( " + bleedingLabel + " )"
} else {
bleedingLabel = 'edit'