Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import {
WrongPasswordError,
} from '../../wallet/components/ErrorMessages';
import {showWalletError} from '../../../store/wallet/effects/errors/errors';
import {toggleHideAccount} from '../../../store/wallet/wallet.actions';
import {Analytics} from '../../../store/analytics/analytics.effects';
import SheetModal from '../../../components/modal/base/sheet/SheetModal';
import GlobalSelect, {
Expand Down Expand Up @@ -542,6 +543,21 @@ const ExternalServicesWalletSelector: React.FC<
logger.debug(
`Added ${createdToWallet?.currencyAbbreviation} wallet from Buy Crypto`,
);
if (
context === 'buyCrypto' &&
createdToWallet?.receiveAddress &&
createNewWalletData.key.evmAccountsInfo?.[
createdToWallet.receiveAddress
]?.hideAccount
) {
dispatch(
toggleHideAccount({
keyId: createNewWalletData.key.id,
accountAddress: createdToWallet.receiveAddress,
accountToggleSelected: false,
}),
);
}
dispatch(
Analytics.track('Created Basic Wallet', {
coin: createNewWalletData.currency.currencyAbbreviation,
Expand Down
Loading