Fix: Ensure that bleeding.value spotting is displayed on symptomBox
This commit is contained in:
@@ -343,7 +343,12 @@ const label = {
|
|||||||
bleeding: (bleeding) => {
|
bleeding: (bleeding) => {
|
||||||
bleeding = mapRealmObjToJsObj(bleeding)
|
bleeding = mapRealmObjToJsObj(bleeding)
|
||||||
const bleedingLabel = []
|
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) => {
|
Object.keys(bleeding).forEach((key) => {
|
||||||
if (bleeding[key] != null && key === 'value') {
|
if (bleeding[key] != null && key === 'value') {
|
||||||
bleedingLabel.push(
|
bleedingLabel.push(
|
||||||
|
|||||||
Reference in New Issue
Block a user