aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/transaction-list-item/transaction-list-item.component.js
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-09-09 07:18:26 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-09-09 07:20:31 +0800
commit9662f9b8b5cdb28e46dbbe1288966a75bb500b8d (patch)
tree75520eb1716ba40b40c99e78d364cccaf7a3df35 /ui/app/components/transaction-list-item/transaction-list-item.component.js
parent47b32682f33b3f1a3757ea10c2d7e4a04fa584b1 (diff)
downloadtangerine-wallet-browser-9662f9b8b5cdb28e46dbbe1288966a75bb500b8d.tar.gz
tangerine-wallet-browser-9662f9b8b5cdb28e46dbbe1288966a75bb500b8d.tar.zst
tangerine-wallet-browser-9662f9b8b5cdb28e46dbbe1288966a75bb500b8d.zip
Show failed tx RPC error messages in tooltips
This changeset displays the error messages attached to txMeta for a failed tx in a tooltip on hover in the tx list view. This will only display for txs with the `txMeta.err.rpc.value` property, not all failed txs.
Diffstat (limited to 'ui/app/components/transaction-list-item/transaction-list-item.component.js')
-rw-r--r--ui/app/components/transaction-list-item/transaction-list-item.component.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/app/components/transaction-list-item/transaction-list-item.component.js b/ui/app/components/transaction-list-item/transaction-list-item.component.js
index 4fddd45ef..140763fba 100644
--- a/ui/app/components/transaction-list-item/transaction-list-item.component.js
+++ b/ui/app/components/transaction-list-item/transaction-list-item.component.js
@@ -131,6 +131,11 @@ export default class TransactionListItem extends PureComponent {
<TransactionStatus
className="transaction-list-item__status"
statusKey={transaction.status}
+ title={(
+ (transaction.err && transaction.err.rpc)
+ ? transaction.err.rpc.message
+ : null
+ )}
/>
{ this.renderPrimaryCurrency() }
{ this.renderSecondaryCurrency() }