From c21fd193ce49b2bee73278e4342cab1d076902e9 Mon Sep 17 00:00:00 2001 From: bl00dymarie Date: Mon, 9 Sep 2024 18:25:26 +0200 Subject: [PATCH] Fix: Ensure that bleeding.value spotting is displayed on symptomBox --- components/helpers/cycle-day.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/helpers/cycle-day.js b/components/helpers/cycle-day.js index 4728665..80c549b 100644 --- a/components/helpers/cycle-day.js +++ b/components/helpers/cycle-day.js @@ -343,7 +343,12 @@ const label = { bleeding: (bleeding) => { bleeding = mapRealmObjToJsObj(bleeding) const bleedingLabel = [] - if (bleeding && Object.values({ ...bleeding }).some((val) => val)) { + if ( + bleeding && + Object.values({ ...bleeding }).some( + (val) => typeof val === 'number' || val == true + ) + ) { Object.keys(bleeding).forEach((key) => { if (bleeding[key] != null && key === 'value') { bleedingLabel.push(