Return status text when no NFP status can be detected

This commit is contained in:
Julia Friesel
2019-02-02 11:33:46 +01:00
parent 8318f5d313
commit 87301da648
+2 -1
View File
@@ -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)