mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 20:02:58 +01:00
Disabled button for Import Tokens Modal when no token is selected (#18396)
* disabled button for zero token * addressed changes
This commit is contained in:
parent
1e079e95b0
commit
4b271868cf
@ -63,6 +63,7 @@ const DetectedTokenSelectionPopover = ({
|
|||||||
className="detected-token-selection-popover__import-button"
|
className="detected-token-selection-popover__import-button"
|
||||||
type="primary"
|
type="primary"
|
||||||
onClick={onImport}
|
onClick={onImport}
|
||||||
|
disabled={selectedTokens.length === 0}
|
||||||
>
|
>
|
||||||
{t('importWithCount', [numOfTokensImporting])}
|
{t('importWithCount', [numOfTokensImporting])}
|
||||||
</Button>
|
</Button>
|
||||||
|
Loading…
Reference in New Issue
Block a user