Label last day of post-ovu phase differently
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user