fix: do not show select all if no tokens are available

This commit is contained in:
fragosti
2018-12-04 11:22:49 -08:00
parent dfe5752411
commit f576f78b4a

View File

@@ -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?',