Display unknown status if approved property is missing

This commit is contained in:
Regalijan 2023-10-23 19:25:58 -04:00
parent 692ad5868f
commit 6ca0e70aa4
Signed by untrusted user who does not match committer: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -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