Move column info production to column and do not get earlier cycles
This commit is contained in:
@@ -21,7 +21,7 @@ export function getFertilityStatusStringForDay(dateString) {
|
||||
return mapToString(phaseNameForDay, dateString, status)
|
||||
}
|
||||
|
||||
export function getCycleStatusForDay(dateString) {
|
||||
export function getCycleStatusForDay(dateString, opts = {}) {
|
||||
const {
|
||||
getCycleForDay,
|
||||
getCyclesBefore,
|
||||
@@ -37,6 +37,8 @@ export function getCycleStatusForDay(dateString) {
|
||||
|
||||
if (previousCycle) {
|
||||
cycleInfo.previousCycle = formatCycleForSympto(previousCycle)
|
||||
}
|
||||
if (previousCycle && !opts.excludeEarlierCycles) {
|
||||
const earlierCycles = getCyclesBefore(previousCycle[0])
|
||||
if (earlierCycles) {
|
||||
cycleInfo.earlierCycles = earlierCycles.map(formatCycleForSympto)
|
||||
|
||||
Reference in New Issue
Block a user