diff options
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r-- | packages/instant/src/containers/available_erc20_token_selector.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/containers/available_erc20_token_selector.ts b/packages/instant/src/containers/available_erc20_token_selector.ts index bb194cd6b..4d4218d22 100644 --- a/packages/instant/src/containers/available_erc20_token_selector.ts +++ b/packages/instant/src/containers/available_erc20_token_selector.ts @@ -31,10 +31,11 @@ const mapDispatchToProps = ( ownProps: AvailableERC20TokenSelectorProps, ): ConnectedDispatch => ({ onTokenSelect: (token: ERC20Asset) => { + dispatch(actions.updateSelectedAsset(token)); + dispatch(actions.resetAmount()); if (ownProps.onTokenSelect) { ownProps.onTokenSelect(token); } - dispatch(actions.updateSelectedAsset(token)); }, }); |