aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/eth_weth_conversion_button.tsx
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-17 23:14:25 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-17 23:14:25 +0800
commitb4375d6f64fc0651c7ba347fcfe36e171fa261fc (patch)
tree1862b4a5ddbcb0c2a4870a9e86c9f6fc47e74bfe /packages/website/ts/components/eth_weth_conversion_button.tsx
parent9f47c72d31412d30471ab05dbb22780dd2f29036 (diff)
downloaddexon-sol-tools-b4375d6f64fc0651c7ba347fcfe36e171fa261fc.tar.gz
dexon-sol-tools-b4375d6f64fc0651c7ba347fcfe36e171fa261fc.tar.zst
dexon-sol-tools-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.tsx2
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')) {