From 87301da648a998384b8afb277e592f6c9e5ad359 Mon Sep 17 00:00:00 2001 From: Julia Friesel Date: Sat, 2 Feb 2019 11:33:46 +0100 Subject: [PATCH] Return status text when no NFP status can be detected --- lib/sympto-adapter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/sympto-adapter.js b/lib/sympto-adapter.js index 980cbfe..858a14e 100644 --- a/lib/sympto-adapter.js +++ b/lib/sympto-adapter.js @@ -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)