diff --git a/app/routes/inactivities.tsx b/app/routes/inactivities.tsx index a8f70d2..3b20d43 100644 --- a/app/routes/inactivities.tsx +++ b/app/routes/inactivities.tsx @@ -169,20 +169,22 @@ export default function () { Decisions:
Approved: - {Object.keys(currentInactivity.decisions ?? {}).filter( - (d) => currentInactivity.decisions[d], - )} + {Object.keys(currentInactivity.decisions ?? {}) + .filter((d) => currentInactivity.decisions[d]) + .join(", ")}
Denied: - {Object.keys(currentInactivity.decisions ?? {}).filter( - (d) => !currentInactivity.decisions[d], - )} + {Object.keys(currentInactivity.decisions ?? {}) + .filter((d) => !currentInactivity.decisions[d]) + .join(", ")}
Pending: - {currentInactivity.departments?.filter( - (d: "DM" | "ET" | "FM" | "WM") => - typeof currentInactivity.decisions[d] === "undefined", - )} + {currentInactivity.departments + ?.filter( + (d: "DM" | "ET" | "FM" | "WM") => + typeof currentInactivity.decisions[d] === "undefined", + ) + .join(", ")}