don't expose mutable access to UserAccount

it's not preferable that the full mutable access is available to
`ZapWallet`, but this PR is becoming too big already

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind committed 2025-07-02 15:45:57 -04:00
1 parent 61e47323ab
commit f0158f71b2
5 files changed
+12 -13

No files matched your search

+1 -2
View File
@@ -63,9 +63,8 @@ impl WalletAction {
let ui_state = &mut global_wallet.ui_state;
if ui_state.for_local_only {
ui_state.for_local_only = false;
let cur_acc = accounts.get_selected_account_mut();
if cur_acc.wallet.is_some() {
if accounts.get_selected_wallet_mut().is_some() {
return None;
}