Display unknown status if approved property is missing
This commit is contained in:
parent
692ad5868f
commit
6ca0e70aa4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user