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> <Td>
{result.open {result.open
? "Pending" ? "Pending"
: result.approved : typeof result.approved === "boolean"
? "Accepted" ? `${result.approved ? "Accepted" : "Denied"}`
: "Denied"} : "Unknown"}
</Td> </Td>
<Td> <Td>
<Button <Button