diff --git a/src/Components/Facility/ConsultationDetails/Events/GenericEvent.tsx b/src/Components/Facility/ConsultationDetails/Events/GenericEvent.tsx index 3176e18f2f3..543336987b2 100644 --- a/src/Components/Facility/ConsultationDetails/Events/GenericEvent.tsx +++ b/src/Components/Facility/ConsultationDetails/Events/GenericEvent.tsx @@ -43,7 +43,13 @@ const formatValue = (value: unknown, key?: string): ReactNode => { return `No ${key?.replaceAll(/_/g, " ")}`; } - return value.map((v) => formatValue(v, key)); + return ( + + ); } if (value instanceof Date) { @@ -77,7 +83,7 @@ export default function GenericEvent(props: IProps) { return (
{Object.entries(props.values).map(([key, value]) => ( -
+
{key.replaceAll(/_/g, " ")}