diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-17 23:14:25 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-17 23:14:25 +0800 |
commit | b4375d6f64fc0651c7ba347fcfe36e171fa261fc (patch) | |
tree | 1862b4a5ddbcb0c2a4870a9e86c9f6fc47e74bfe /packages/website/ts/components/eth_weth_conversion_button.tsx | |
parent | 9f47c72d31412d30471ab05dbb22780dd2f29036 (diff) | |
download | dexon-0x-contracts-b4375d6f64fc0651c7ba347fcfe36e171fa261fc.tar dexon-0x-contracts-b4375d6f64fc0651c7ba347fcfe36e171fa261fc.tar.gz dexon-0x-contracts-b4375d6f64fc0651c7ba347fcfe36e171fa261fc.tar.bz2 dexon-0x-contracts-b4375d6f64fc0651c7ba347fcfe36e171fa261fc.tar.lz dexon-0x-contracts-b4375d6f64fc0651c7ba347fcfe36e171fa261fc.tar.xz dexon-0x-contracts-b4375d6f64fc0651c7ba347fcfe36e171fa261fc.tar.zst dexon-0x-contracts-b4375d6f64fc0651c7ba347fcfe36e171fa261fc.zip |
Enable restrict-plus-operands and fix issues detected
Diffstat (limited to 'packages/website/ts/components/eth_weth_conversion_button.tsx')
-rw-r--r-- | packages/website/ts/components/eth_weth_conversion_button.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/components/eth_weth_conversion_button.tsx b/packages/website/ts/components/eth_weth_conversion_button.tsx index f2c505207..300e71f1f 100644 --- a/packages/website/ts/components/eth_weth_conversion_button.tsx +++ b/packages/website/ts/components/eth_weth_conversion_button.tsx @@ -105,7 +105,7 @@ export class EthWethConversionButton extends React.Component< } this.props.onConversionSuccessful(); } catch (err) { - const errMsg = '' + err; + const errMsg = `${err}`; if (_.includes(errMsg, BlockchainCallErrs.UserHasNoAssociatedAddresses)) { this.props.dispatcher.updateShouldBlockchainErrDialogBeOpen(true); } else if (!_.includes(errMsg, 'User denied transaction')) { |