diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-12-05 03:22:49 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-12-05 03:22:49 +0800 |
commit | f576f78b4a18e45ff2ed55ab840c0bacce87ad7c (patch) | |
tree | 7dcb618f0c89910d46192b6ffa306fe175b988fe | |
parent | dfe5752411509f8fe6b26a4aa23c182fc84b0948 (diff) | |
download | dexon-0x-contracts-f576f78b4a18e45ff2ed55ab840c0bacce87ad7c.tar dexon-0x-contracts-f576f78b4a18e45ff2ed55ab840c0bacce87ad7c.tar.gz dexon-0x-contracts-f576f78b4a18e45ff2ed55ab840c0bacce87ad7c.tar.bz2 dexon-0x-contracts-f576f78b4a18e45ff2ed55ab840c0bacce87ad7c.tar.lz dexon-0x-contracts-f576f78b4a18e45ff2ed55ab840c0bacce87ad7c.tar.xz dexon-0x-contracts-f576f78b4a18e45ff2ed55ab840c0bacce87ad7c.tar.zst dexon-0x-contracts-f576f78b4a18e45ff2ed55ab840c0bacce87ad7c.zip |
fix: do not show select all if no tokens are available
-rw-r--r-- | packages/website/ts/pages/instant/config_generator.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/website/ts/pages/instant/config_generator.tsx b/packages/website/ts/pages/instant/config_generator.tsx index 4e25e3437..f2c9c698b 100644 --- a/packages/website/ts/pages/instant/config_generator.tsx +++ b/packages/website/ts/pages/instant/config_generator.tsx @@ -83,6 +83,11 @@ export class ConfigGenerator extends React.Component<ConfigGeneratorProps, Confi ); } private readonly _getTokenSelectorProps = (): ConfigGeneratorSectionProps => { + if (_.isEmpty(this.state.availableTokens)) { + return { + title: 'What tokens can users buy?', + }; + } if (_.isUndefined(this.props.value.availableAssetDatas)) { return { title: 'What tokens can users buy?', |