make selected accounts non optional
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -92,13 +92,11 @@ impl WalletAction {
|
||||
global_wallet.ui_state.for_local_only = true;
|
||||
}
|
||||
WalletAction::Delete => {
|
||||
if let Some(acc) = accounts.get_selected_account() {
|
||||
if acc.wallet.is_some() {
|
||||
accounts.update_current_account(|acc| {
|
||||
acc.wallet = None;
|
||||
});
|
||||
return None;
|
||||
}
|
||||
if accounts.get_selected_account().wallet.is_some() {
|
||||
accounts.update_current_account(|acc| {
|
||||
acc.wallet = None;
|
||||
});
|
||||
return None;
|
||||
}
|
||||
|
||||
global_wallet.wallet = None;
|
||||
|
||||
Reference in New Issue
Block a user