aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-10-06 02:42:01 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-10-06 02:42:01 +0800
commit3cb9da2ae56ce0b3162e64dbcf69f5f9e39ff4e8 (patch)
tree746f622e7e24e5188411ba04f07c2da9785fff92 /app
parente128e4859fdcffa580959041b01020bccb6e8a29 (diff)
downloadtangerine-wallet-browser-3cb9da2ae56ce0b3162e64dbcf69f5f9e39ff4e8.tar
tangerine-wallet-browser-3cb9da2ae56ce0b3162e64dbcf69f5f9e39ff4e8.tar.gz
tangerine-wallet-browser-3cb9da2ae56ce0b3162e64dbcf69f5f9e39ff4e8.tar.bz2
tangerine-wallet-browser-3cb9da2ae56ce0b3162e64dbcf69f5f9e39ff4e8.tar.lz
tangerine-wallet-browser-3cb9da2ae56ce0b3162e64dbcf69f5f9e39ff4e8.tar.xz
tangerine-wallet-browser-3cb9da2ae56ce0b3162e64dbcf69f5f9e39ff4e8.tar.zst
tangerine-wallet-browser-3cb9da2ae56ce0b3162e64dbcf69f5f9e39ff4e8.zip
"fix" hours for message
Diffstat (limited to 'app')
-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)
}