1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00

Reduce time to show tx "speed up" buttons to 5 seconds. (#6797)

This commit is contained in:
Dan Finlay 2019-07-03 22:10:17 -07:00 committed by GitHub
parent a44f38e640
commit 797f0c6ced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ export default class TransactionList extends PureComponent {
const { transactions = [], hasRetried } = transactionGroup const { transactions = [], hasRetried } = transactionGroup
const [earliestTransaction = {}] = transactions const [earliestTransaction = {}] = transactions
const { submittedTime } = earliestTransaction const { submittedTime } = earliestTransaction
return Date.now() - submittedTime > 30000 && isEarliestNonce && !hasRetried return Date.now() - submittedTime > 5000 && isEarliestNonce && !hasRetried
} }
shouldShowCancel (transactionGroup) { shouldShowCancel (transactionGroup) {