Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Display unknown status if approved property is missing
  • Loading branch information
Regalijan authored and Regalijan committed Oct 23, 2023
1 parent 692ad58 commit 6ca0e70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/routes/me.tsx
Expand Up @@ -251,9 +251,9 @@ export default function () {
<Td>
{result.open
? "Pending"
: result.approved
? "Accepted"
: "Denied"}
: typeof result.approved === "boolean"
? `${result.approved ? "Accepted" : "Denied"}`
: "Unknown"}
</Td>
<Td>
<Button
Expand Down

0 comments on commit 6ca0e70

Please sign in to comment.