From a209862d0df16306f4537bed628cc94d03abfc46 Mon Sep 17 00:00:00 2001 From: stringhandler Date: Thu, 23 Nov 2023 07:27:54 +0200 Subject: [PATCH] feat(ui): show reject reasons (#781) Description --- More UI feedback on rejected transactions Co-authored-by: Stan Bondi --- .../src/routes/Transactions/TransactionDetails.tsx | 5 +++++ .../src/routes/Transactions/TransactionDetails.tsx | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/applications/tari_dan_wallet_web_ui/src/routes/Transactions/TransactionDetails.tsx b/applications/tari_dan_wallet_web_ui/src/routes/Transactions/TransactionDetails.tsx index d2e34fea1..7e63d5da2 100644 --- a/applications/tari_dan_wallet_web_ui/src/routes/Transactions/TransactionDetails.tsx +++ b/applications/tari_dan_wallet_web_ui/src/routes/Transactions/TransactionDetails.tsx @@ -73,6 +73,11 @@ export default function TransactionDetails() { {result.result.AcceptFeeRejectRest[1].ExecutionFailure} ); } + if (result.result.Reject) { + return ( + {Object.keys(result.result.Reject)[0]} - {result.result.Reject[Object.keys(result.result.Reject)[0]]} + ) + } } else { return ( In progress diff --git a/applications/tari_validator_node_web_ui/src/routes/Transactions/TransactionDetails.tsx b/applications/tari_validator_node_web_ui/src/routes/Transactions/TransactionDetails.tsx index 524172eae..e448dbd32 100644 --- a/applications/tari_validator_node_web_ui/src/routes/Transactions/TransactionDetails.tsx +++ b/applications/tari_validator_node_web_ui/src/routes/Transactions/TransactionDetails.tsx @@ -110,6 +110,11 @@ export default function TransactionDetails() { {result.finalize.result.AcceptFeeRejectRest[1].ExecutionFailure} ); } + if (result.finalize.result.Reject) { + return ( + {Object.keys(result.finalize.result.Reject)[0]} - {result.finalize.result.Reject[Object.keys(result.finalize.result.Reject)[0]]} + ) + } } else { return ( In progress