1
0
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:
Nidhi Kumari 2023-04-04 11:23:05 +05:30 committed by GitHub
parent 1e079e95b0
commit 4b271868cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>