fix: do not show select all if no tokens are available
This commit is contained in:
@@ -83,6 +83,11 @@ export class ConfigGenerator extends React.Component<ConfigGeneratorProps, Confi
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
private readonly _getTokenSelectorProps = (): ConfigGeneratorSectionProps => {
|
private readonly _getTokenSelectorProps = (): ConfigGeneratorSectionProps => {
|
||||||
|
if (_.isEmpty(this.state.availableTokens)) {
|
||||||
|
return {
|
||||||
|
title: 'What tokens can users buy?',
|
||||||
|
};
|
||||||
|
}
|
||||||
if (_.isUndefined(this.props.value.availableAssetDatas)) {
|
if (_.isUndefined(this.props.value.availableAssetDatas)) {
|
||||||
return {
|
return {
|
||||||
title: 'What tokens can users buy?',
|
title: 'What tokens can users buy?',
|
||||||
|
|||||||
Reference in New Issue
Block a user