aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/website/ts/components/eth_weth_conversion_button.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/website/ts/components/eth_weth_conversion_button.tsx b/packages/website/ts/components/eth_weth_conversion_button.tsx
index bf686d44b..b017de27b 100644
--- a/packages/website/ts/components/eth_weth_conversion_button.tsx
+++ b/packages/website/ts/components/eth_weth_conversion_button.tsx
@@ -32,6 +32,7 @@ export class EthWethConversionButton extends
React.Component<EthWethConversionButtonProps, EthWethConversionButtonState> {
public static defaultProps: Partial<EthWethConversionButtonProps> = {
isDisabled: false,
+ onConversionSuccessful: _.noop,
};
public constructor(props: EthWethConversionButtonProps) {
super(props);
@@ -100,9 +101,7 @@ export class EthWethConversionButton extends
if (!this.props.isOutdatedWrappedEther) {
this.props.dispatcher.replaceTokenBalanceByAddress(token.address, balance);
}
- if (!_.isUndefined(this.props.onConversionSuccessful)) {
- this.props.onConversionSuccessful();
- }
+ this.props.onConversionSuccessful();
} catch (err) {
const errMsg = '' + err;
if (_.includes(errMsg, BlockchainCallErrs.USER_HAS_NO_ASSOCIATED_ADDRESSES)) {