aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-07-12 03:01:59 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-07-12 03:01:59 +0800
commit611338c4e0b6de670f1a3ac6a0f1ddd3a2c063f7 (patch)
tree9f188c8e10e9891fb134542e4a2d9d28afdda57f /app/scripts
parent11d57adc5c6fa124cbb83a907a55a0aa733bb1cc (diff)
downloadtangerine-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
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/controllers/transactions.js6
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')
)