aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/transaction-list/transaction-list.component.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-08-12 12:12:30 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-08-24 07:45:27 +0800
commitb48a293af059d2ad23fea0af601740888acd3f8b (patch)
treefd72fb11cb22667b4c0fb1f66eb8f7e059234307 /ui/app/components/transaction-list/transaction-list.component.js
parent5dcd8ceb7bbaef33fef5588feceac17577679e74 (diff)
downloadtangerine-wallet-browser-b48a293af059d2ad23fea0af601740888acd3f8b.tar.gz
tangerine-wallet-browser-b48a293af059d2ad23fea0af601740888acd3f8b.tar.zst
tangerine-wallet-browser-b48a293af059d2ad23fea0af601740888acd3f8b.zip
Update retry transaction logic to use network nonce
Diffstat (limited to 'ui/app/components/transaction-list/transaction-list.component.js')
-rw-r--r--ui/app/components/transaction-list/transaction-list.component.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/app/components/transaction-list/transaction-list.component.js b/ui/app/components/transaction-list/transaction-list.component.js
index c1e1885f3..e30476d8c 100644
--- a/ui/app/components/transaction-list/transaction-list.component.js
+++ b/ui/app/components/transaction-list/transaction-list.component.js
@@ -20,6 +20,20 @@ export default class TransactionList extends PureComponent {
completedTransactions: PropTypes.array,
transactionToRetry: PropTypes.object,
selectedToken: PropTypes.object,
+ updateNetworkNonce: PropTypes.func,
+ }
+
+ componentDidMount () {
+ this.props.updateNetworkNonce()
+ }
+
+ componentDidUpdate (prevProps) {
+ const { pendingTransactions: prevPendingTransactions = [] } = prevProps
+ const { pendingTransactions = [], updateNetworkNonce } = this.props
+
+ if (pendingTransactions.length > prevPendingTransactions.length) {
+ updateNetworkNonce()
+ }
}
shouldShowRetry = transaction => {