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
committed by Fred Carlsen
parent 27cb0386a3
commit 77cc1a95bb

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