diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-10-06 02:42:01 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-10-06 02:42:01 +0800 |
commit | 3cb9da2ae56ce0b3162e64dbcf69f5f9e39ff4e8 (patch) | |
tree | 746f622e7e24e5188411ba04f07c2da9785fff92 | |
parent | e128e4859fdcffa580959041b01020bccb6e8a29 (diff) | |
download | tangerine-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
-rw-r--r-- | app/scripts/lib/pending-tx-tracker.js | 3 |
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) } |