Commit 3fbf8b3
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- packages
- kit-bg/src/services/ServiceBatchCreateAccount
- kit/src/states/jotai/contexts/accountSelector
2 files changed
+220
-212
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
0 commit comments