Label last day of post-ovu phase differently

This commit is contained in:
Julia Friesel
2018-07-16 18:39:40 +02:00
parent 79f17644d7
commit b455a030cc
3 changed files with 9 additions and 5 deletions
+6 -3
View File
@@ -15,10 +15,13 @@ export default function (dateString) {
previousCycles: previousCycles.map(formatCycleForSympto)
})
return formatStatusForApp(status)
}
if (status.phases.postOvulatory) {
const phase = status.phases.postOvulatory
if (phase.start.date === dateString) {
return fertilityStatus.fertileUntilEvening
}
}
function formatStatusForApp(status) {
if (status.assumeFertility) {
return fertilityStatus.fertile
} else {