aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-12-05 03:22:49 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-12-05 03:22:49 +0800
commitf576f78b4a18e45ff2ed55ab840c0bacce87ad7c (patch)
tree7dcb618f0c89910d46192b6ffa306fe175b988fe /packages/website
parentdfe5752411509f8fe6b26a4aa23c182fc84b0948 (diff)
downloaddexon-sol-tools-f576f78b4a18e45ff2ed55ab840c0bacce87ad7c.tar
dexon-sol-tools-f576f78b4a18e45ff2ed55ab840c0bacce87ad7c.tar.gz
dexon-sol-tools-f576f78b4a18e45ff2ed55ab840c0bacce87ad7c.tar.bz2
dexon-sol-tools-f576f78b4a18e45ff2ed55ab840c0bacce87ad7c.tar.lz
dexon-sol-tools-f576f78b4a18e45ff2ed55ab840c0bacce87ad7c.tar.xz
dexon-sol-tools-f576f78b4a18e45ff2ed55ab840c0bacce87ad7c.tar.zst
dexon-sol-tools-f576f78b4a18e45ff2ed55ab840c0bacce87ad7c.zip
fix: do not show select all if no tokens are available
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/pages/instant/config_generator.tsx5
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?',