Return status text when no NFP status can be detected
This commit is contained in:
@@ -7,7 +7,8 @@ export function getFertilityStatusForDay(dateString) {
|
||||
const status = getCycleStatusForDay(dateString)
|
||||
if (!status) return {
|
||||
status: labels.fertile,
|
||||
phase: null
|
||||
phase: null,
|
||||
statusText: labels.unknown
|
||||
}
|
||||
|
||||
const phases = Object.keys(status.phases)
|
||||
|
||||
Reference in New Issue
Block a user