aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/transaction-list/transaction-list.component.js
diff options
context:
space:
mode:
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 => {