Skip to content

Commit

Permalink
feat(ui): show reject reasons (#781)
Browse files Browse the repository at this point in the history
Description
---
More UI feedback on rejected transactions

Co-authored-by: Stan Bondi <[email protected]>
  • Loading branch information
stringhandler and sdbondi authored Nov 23, 2023
1 parent 6d48db4 commit a209862
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ export default function TransactionDetails() {
<span>{result.result.AcceptFeeRejectRest[1].ExecutionFailure}</span>
);
}
if (result.result.Reject) {
return (
<span>{Object.keys(result.result.Reject)[0]} - {result.result.Reject[Object.keys(result.result.Reject)[0]]}</span>
)
}
} else {
return (
<span>In progress</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ export default function TransactionDetails() {
<span>{result.finalize.result.AcceptFeeRejectRest[1].ExecutionFailure}</span>
);
}
if (result.finalize.result.Reject) {
return (
<span>{Object.keys(result.finalize.result.Reject)[0]} - {result.finalize.result.Reject[Object.keys(result.finalize.result.Reject)[0]]}</span>
)
}
} else {
return (
<span>In progress</span>
Expand Down

0 comments on commit a209862

Please sign in to comment.