diff options
Display newest transaction
Diffstat (limited to 'ui/app/components/pages/confirm-transaction/confirm-transaction.component.js')
-rw-r--r-- | ui/app/components/pages/confirm-transaction/confirm-transaction.component.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/app/components/pages/confirm-transaction/confirm-transaction.component.js b/ui/app/components/pages/confirm-transaction/confirm-transaction.component.js index 29ee5eedc..d4581e8ed 100644 --- a/ui/app/components/pages/confirm-transaction/confirm-transaction.component.js +++ b/ui/app/components/pages/confirm-transaction/confirm-transaction.component.js @@ -61,7 +61,7 @@ export default class ConfirmTransaction extends Component { setTransactionToConfirm(paramsTransactionId) } - if (!paramsTransactionId) { + if (!transactionId) { this.setTransactionToConfirm() } } @@ -84,7 +84,8 @@ export default class ConfirmTransaction extends Component { setTransactionToConfirm(paramsTransactionId) } } else if (unconfirmedTransactions.length) { - const transactionId = unconfirmedTransactions[0].id + const totalUnconfirmed = unconfirmedTransactions.length + const transactionId = unconfirmedTransactions[totalUnconfirmed - 1].id setTransactionToConfirm(transactionId) } } |