Fix: Ensure that bleeding.value spotting is displayed on symptomBox

This commit is contained in:
bl00dymarie
2024-09-09 18:25:26 +02:00
parent d5dc4ada12
commit c21fd193ce
+6 -1
View File
@@ -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(