Adds subcategories of cevix and mucus as labels

This commit is contained in:
emelko
2019-05-27 22:39:14 +02:00
parent 442bcc5cee
commit 7864ebfc41
2 changed files with 11 additions and 2 deletions
+2 -2
View File
@@ -70,7 +70,7 @@ export default class CycleDayOverView extends Component {
mucus: mucus => {
const filledCategories = ['feeling', 'texture'].filter(c => isNumber(mucus[c]))
let label = filledCategories.map(category => {
return category + ': ' + labels.mucus[category].categories[mucus[category]]
return labels.mucus.subcategories[category] + ': ' + labels.mucus[category].categories[mucus[category]]
}).join(', ')
if (isNumber(mucus.value)) label += `\n => ${labels.mucusNFP[mucus.value]}`
@@ -81,7 +81,7 @@ export default class CycleDayOverView extends Component {
cervix: cervix => {
const filledCategories = ['opening', 'firmness', 'position'].filter(c => isNumber(cervix[c]))
let label = filledCategories.map(category => {
return category + ': ' + labels.cervix[category].categories[cervix[category]]
return labels.cervix.subcategories[category] + ': ' + labels.cervix[category].categories[cervix[category]]
}).join(', ')
if (cervix.exclude) label = `(${label})`