diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-12-05 03:22:49 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-06 18:58:37 +0800 |
commit | 77cc1a95bb23d13f3df10060fd6f18e8739f9d3a (patch) | |
tree | 3194193af90e6b625bde72706ab1cd7e840ac335 /packages/website/ts | |
parent | 27cb0386a3da6bc725035c0f150a3ab890195c1b (diff) | |
download | dexon-sol-tools-77cc1a95bb23d13f3df10060fd6f18e8739f9d3a.tar dexon-sol-tools-77cc1a95bb23d13f3df10060fd6f18e8739f9d3a.tar.gz dexon-sol-tools-77cc1a95bb23d13f3df10060fd6f18e8739f9d3a.tar.bz2 dexon-sol-tools-77cc1a95bb23d13f3df10060fd6f18e8739f9d3a.tar.lz dexon-sol-tools-77cc1a95bb23d13f3df10060fd6f18e8739f9d3a.tar.xz dexon-sol-tools-77cc1a95bb23d13f3df10060fd6f18e8739f9d3a.tar.zst dexon-sol-tools-77cc1a95bb23d13f3df10060fd6f18e8739f9d3a.zip |
fix: do not show select all if no tokens are available
Diffstat (limited to 'packages/website/ts')
-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?', |