diff options
author | Dan <danjm.com@gmail.com> | 2018-03-28 21:21:16 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-03-28 21:21:16 +0800 |
commit | 21b6a3442d8cae8c95a3d7e0b9e216d91bc8bd19 (patch) | |
tree | f2d5eb36b31b2e14dc3ed9181e4da082ce0af23d /old-ui | |
parent | 871edfe12ad37545c596e2e926afc458c0efa559 (diff) | |
download | tangerine-wallet-browser-21b6a3442d8cae8c95a3d7e0b9e216d91bc8bd19.tar.gz tangerine-wallet-browser-21b6a3442d8cae8c95a3d7e0b9e216d91bc8bd19.tar.zst tangerine-wallet-browser-21b6a3442d8cae8c95a3d7e0b9e216d91bc8bd19.zip |
Fix display of unapprovedMessages in txList (old and new ui); includes fix of undefined txParams.
Diffstat (limited to 'old-ui')
-rw-r--r-- | old-ui/app/components/transaction-list-item.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/old-ui/app/components/transaction-list-item.js b/old-ui/app/components/transaction-list-item.js index 7ab3414e5..f7d59005a 100644 --- a/old-ui/app/components/transaction-list-item.js +++ b/old-ui/app/components/transaction-list-item.js @@ -31,6 +31,11 @@ function TransactionListItem () { TransactionListItem.prototype.showRetryButton = function () { const { transaction = {}, transactions } = this.props const { status, submittedTime, txParams } = transaction + + if (!txParams) { + return false + } + const currentNonce = txParams.nonce const currentNonceTxs = transactions.filter(tx => tx.txParams.nonce === currentNonce) const currentNonceSubmittedTxs = currentNonceTxs.filter(tx => tx.status === 'submitted') |