aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan Miller <danjm.com@gmail.com>2018-08-09 07:55:25 +0800
committerDan Miller <danjm.com@gmail.com>2018-08-09 07:56:25 +0800
commit973325a6c40c7721ee044d3a9308e58691974e24 (patch)
tree28dd982b34b9eb1fcb4019a3e42f9d7df33a2a24 /ui
parent1d4ee6bf765f0b7fc80fa7f95618e8de3844488d (diff)
downloadtangerine-wallet-browser-973325a6c40c7721ee044d3a9308e58691974e24.tar
tangerine-wallet-browser-973325a6c40c7721ee044d3a9308e58691974e24.tar.gz
tangerine-wallet-browser-973325a6c40c7721ee044d3a9308e58691974e24.tar.bz2
tangerine-wallet-browser-973325a6c40c7721ee044d3a9308e58691974e24.tar.lz
tangerine-wallet-browser-973325a6c40c7721ee044d3a9308e58691974e24.tar.xz
tangerine-wallet-browser-973325a6c40c7721ee044d3a9308e58691974e24.tar.zst
tangerine-wallet-browser-973325a6c40c7721ee044d3a9308e58691974e24.zip
Show error while allowing confirmation of transaction where simulation fails
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js2
-rw-r--r--ui/app/constants/error-keys.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js b/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js
index b170880b4..961aa304e 100644
--- a/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js
+++ b/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js
@@ -124,7 +124,7 @@ export default class ConfirmTransactionBase extends Component {
if (simulationFails) {
return {
- valid: false,
+ valid: true,
errorKey: TRANSACTION_ERROR_KEY,
}
}
diff --git a/ui/app/constants/error-keys.js b/ui/app/constants/error-keys.js
index 1b89be62e..f70ed3b19 100644
--- a/ui/app/constants/error-keys.js
+++ b/ui/app/constants/error-keys.js
@@ -1,3 +1,3 @@
export const INSUFFICIENT_FUNDS_ERROR_KEY = 'insufficientFunds'
export const GAS_LIMIT_TOO_LOW_ERROR_KEY = 'gasLimitTooLow'
-export const TRANSACTION_ERROR = 'transactionError'
+export const TRANSACTION_ERROR_KEY = 'transactionError'