Skip to content

Commit 3fbf8b3

Browse files
authored
fix: enhance account selection logic in AccountSelectorActions (#8168)
* fix: enhance account selection logic in AccountSelectorActions - Introduced a mutex for auto-selecting the next account to prevent race conditions. - Added conditions to handle specific wallet transitions and ensure proper account focus. - Refactored account selection logic to improve clarity and maintainability. - Updated the handling of others wallet accounts to ensure correct selection and focus behavior. * fix: comment out debugger statements in AccountSelectorActions - Removed active debugger statements to clean up the code and prevent unintended breakpoints during execution. - Maintained the logic for account selection without altering functionality.
1 parent 4933455 commit 3fbf8b3

File tree

2 files changed

+220
-212
lines changed

2 files changed

+220
-212
lines changed

packages/kit-bg/src/services/ServiceBatchCreateAccount/ServiceBatchCreateAccount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ import { getVaultSettings } from '../../vaults/settings';
3636
import { buildDefaultAddAccountNetworks } from '../ServiceAccount/defaultNetworkAccountsConfig';
3737
import ServiceBase from '../ServiceBase';
3838

39-
import type { AllNetworkAddressParams } from '@onekeyfe/hd-core';
4039
import type {
4140
IAccountDeriveTypes,
4241
IHwAllNetworkPrepareAccountsResponse,
4342
} from '../../vaults/types';
4443
import type { IWithHardwareProcessingControlParams } from '../ServiceHardwareUI/ServiceHardwareUI';
44+
import type { AllNetworkAddressParams } from '@onekeyfe/hd-core';
4545

4646
export type IBatchCreateAccountProgressInfo = {
4747
totalCount: number;

0 commit comments

Comments
 (0)