aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-03 04:03:10 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-03 04:03:10 +0800
commit1f3055c1bce264fb728190e7661f70db24ff6cee (patch)
treee6037df6a9c506f551a0257e4feed8ea2e9b5e70 /packages/instant/src
parent7619bc4f13bf22f3ec7caa9257a625331a9ff0ba (diff)
downloaddexon-sol-tools-1f3055c1bce264fb728190e7661f70db24ff6cee.tar
dexon-sol-tools-1f3055c1bce264fb728190e7661f70db24ff6cee.tar.gz
dexon-sol-tools-1f3055c1bce264fb728190e7661f70db24ff6cee.tar.bz2
dexon-sol-tools-1f3055c1bce264fb728190e7661f70db24ff6cee.tar.lz
dexon-sol-tools-1f3055c1bce264fb728190e7661f70db24ff6cee.tar.xz
dexon-sol-tools-1f3055c1bce264fb728190e7661f70db24ff6cee.tar.zst
dexon-sol-tools-1f3055c1bce264fb728190e7661f70db24ff6cee.zip
feat: reset input after token selection
Diffstat (limited to 'packages/instant/src')
-rw-r--r--packages/instant/src/containers/available_erc20_token_selector.ts3
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));
},
});