Browse Source
Ability to import accounts even if sync is not finished yet
master
meriadec
7 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
1 changed files with
2 additions and
1 deletions
-
src/components/modals/AddAccounts/steps/03-step-import.js
|
|
@ -246,11 +246,12 @@ export const StepImportFooter = ({ |
|
|
|
|
|
|
|
const willClose = !willCreateAccount && !willAddAccounts |
|
|
|
const onClick = willClose ? onCloseModal : onClickAdd |
|
|
|
const hasCheckedAccounts = !!checkedAccountsIds.length |
|
|
|
|
|
|
|
return ( |
|
|
|
<Fragment> |
|
|
|
{currency && <CurrencyBadge mr="auto" currency={currency} />} |
|
|
|
<Button primary disabled={scanStatus !== 'finished'} onClick={onClick}> |
|
|
|
<Button primary disabled={!hasCheckedAccounts} onClick={onClick}> |
|
|
|
{ctaWording} |
|
|
|
</Button> |
|
|
|
</Fragment> |
|
|
|