aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pages
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-06-26 12:29:16 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-07-07 07:27:08 +0800
commit7732cd4100f3c40f35eeaec669094f63292cbe3d (patch)
treef09c5e60901d4ae83e6f0cb1f5856e369b141d68 /ui/app/components/pages
parente89549846fd3bd520b99740c7845f48f368c3afa (diff)
downloadtangerine-wallet-browser-7732cd4100f3c40f35eeaec669094f63292cbe3d.tar
tangerine-wallet-browser-7732cd4100f3c40f35eeaec669094f63292cbe3d.tar.gz
tangerine-wallet-browser-7732cd4100f3c40f35eeaec669094f63292cbe3d.tar.bz2
tangerine-wallet-browser-7732cd4100f3c40f35eeaec669094f63292cbe3d.tar.lz
tangerine-wallet-browser-7732cd4100f3c40f35eeaec669094f63292cbe3d.tar.xz
tangerine-wallet-browser-7732cd4100f3c40f35eeaec669094f63292cbe3d.tar.zst
tangerine-wallet-browser-7732cd4100f3c40f35eeaec669094f63292cbe3d.zip
Display newest transaction
Diffstat (limited to 'ui/app/components/pages')
-rw-r--r--ui/app/components/pages/confirm-transaction/confirm-transaction.component.js5
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)
}
}