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>
|
<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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user