Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
More undefined guards
  • Loading branch information
regalijan committed Jan 24, 2025
1 parent d7cbebc commit 24b5fc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/routes/inactivities.tsx
Expand Up @@ -135,17 +135,17 @@ export default function () {
Decisions:
<br />
Approved: $
{Object.keys(currentInactivity.decisions).filter(
{Object.keys(currentInactivity.decisions ?? {}).filter(
(d) => currentInactivity.decisions[d],
)}
<br />
Denied: $
{Object.keys(currentInactivity.decisions).filter(
{Object.keys(currentInactivity.decisions ?? {}).filter(
(d) => !currentInactivity.decisions[d],
)}
<br />
Pending: $
{currentInactivity.departments.filter(
{currentInactivity.departments?.filter(
(d: "DM" | "ET" | "FM" | "WM") =>
typeof currentInactivity.decisions[d] === "undefined",
)}
Expand Down

0 comments on commit 24b5fc0

Please sign in to comment.