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
2025-07-02 15:45:57 -04:00
parent 61e47323ab
commit f0158f71b2
5 changed files with 12 additions and 13 deletions
+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;
}