diff options
author | Brandon Millman <brandon@0xproject.com> | 2018-12-21 07:35:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-21 07:35:26 +0800 |
commit | 9b540fd8e52e7578d3749e6d9ef9cd97d602ffb3 (patch) | |
tree | 87b38e76cc52301a4b4fd259c83f3eb69414fe85 /packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts | |
parent | 5ec1ae5f7f488d20130d68ed422fac769b843f93 (diff) | |
parent | 56af9b2aab26fd6a774d0b345ce8e1441bb1a9e0 (diff) | |
download | dexon-sol-tools-9b540fd8e52e7578d3749e6d9ef9cd97d602ffb3.tar dexon-sol-tools-9b540fd8e52e7578d3749e6d9ef9cd97d602ffb3.tar.gz dexon-sol-tools-9b540fd8e52e7578d3749e6d9ef9cd97d602ffb3.tar.bz2 dexon-sol-tools-9b540fd8e52e7578d3749e6d9ef9cd97d602ffb3.tar.lz dexon-sol-tools-9b540fd8e52e7578d3749e6d9ef9cd97d602ffb3.tar.xz dexon-sol-tools-9b540fd8e52e7578d3749e6d9ef9cd97d602ffb3.tar.zst dexon-sol-tools-9b540fd8e52e7578d3749e6d9ef9cd97d602ffb3.zip |
Merge pull request #1434 from 0xProject/fix/instant/signature-denied
[instant] fix signature denial error message and add trust wallet detection
Diffstat (limited to 'packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts')
-rw-r--r-- | packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts b/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts index 80943a96f..4da99cf04 100644 --- a/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts +++ b/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts @@ -95,6 +95,9 @@ const mapDispatchToProps = ( if (error === ZeroExInstantError.InsufficientETH) { const errorMessage = "You don't have enough ETH"; errorFlasher.flashNewErrorMessage(dispatch, errorMessage); + } else if (error === ZeroExInstantError.CouldNotSubmitTransaction) { + const errorMessage = 'Could not submit transaction'; + errorFlasher.flashNewErrorMessage(dispatch, errorMessage); } else { errorFlasher.flashNewErrorMessage(dispatch); } |