aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/pending-tx-tracker.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/lib/pending-tx-tracker.js')
-rw-r--r--app/scripts/lib/pending-tx-tracker.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/lib/pending-tx-tracker.js b/app/scripts/lib/pending-tx-tracker.js
index 3463d45bf..8a626e222 100644
--- a/app/scripts/lib/pending-tx-tracker.js
+++ b/app/scripts/lib/pending-tx-tracker.js
@@ -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)
}