mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
"fix" hours for message
This commit is contained in:
parent
e128e4859f
commit
3cb9da2ae5
@ -101,7 +101,8 @@ module.exports = class PendingTransactionTracker extends EventEmitter {
|
||||
|
||||
async _resubmitTx (txMeta) {
|
||||
if (Date.now() > txMeta.time + this.retryTimePeriod) {
|
||||
const err = new Error(`Gave up submitting after ${this.retryTimePeriod / 3.6e+6} hours.`)
|
||||
const hours = (this.retryTimePeriod / 3.6e+6).toFixed(1)
|
||||
const err = new Error(`Gave up submitting after ${hours} hours.`)
|
||||
return this.emit('tx:failed', txMeta.id, err)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user