diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-07-12 03:01:59 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-07-12 03:01:59 +0800 |
commit | 611338c4e0b6de670f1a3ac6a0f1ddd3a2c063f7 (patch) | |
tree | 9f188c8e10e9891fb134542e4a2d9d28afdda57f | |
parent | 11d57adc5c6fa124cbb83a907a55a0aa733bb1cc (diff) | |
download | tangerine-wallet-browser-611338c4e0b6de670f1a3ac6a0f1ddd3a2c063f7.tar tangerine-wallet-browser-611338c4e0b6de670f1a3ac6a0f1ddd3a2c063f7.tar.gz tangerine-wallet-browser-611338c4e0b6de670f1a3ac6a0f1ddd3a2c063f7.tar.bz2 tangerine-wallet-browser-611338c4e0b6de670f1a3ac6a0f1ddd3a2c063f7.tar.lz tangerine-wallet-browser-611338c4e0b6de670f1a3ac6a0f1ddd3a2c063f7.tar.xz tangerine-wallet-browser-611338c4e0b6de670f1a3ac6a0f1ddd3a2c063f7.tar.zst tangerine-wallet-browser-611338c4e0b6de670f1a3ac6a0f1ddd3a2c063f7.zip |
use .includes
-rw-r--r-- | app/scripts/controllers/transactions.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js index 933c079d2..c0d4841a9 100644 --- a/app/scripts/controllers/transactions.js +++ b/app/scripts/controllers/transactions.js @@ -426,11 +426,11 @@ module.exports = class TransactionController extends EventEmitter { const errorMessage = err.message.toLowerCase() const isKnownTx = ( // geth - errorMessage === 'replacement transaction underpriced' + errorMessage.includes('replacement transaction underpriced') || errorMessage.includes('known transaction') // parity - || errorMessage === 'gas price too low to replace' - || errorMessage === 'transaction with the same hash was already imported.' + || errorMessage.includes('gas price too low to replace') + || errorMessage.includes('transaction with the same hash was already imported') // other || errorMessage.includes('gateway timeout') ) |