Skip to content

Commit

Permalink
fix: build (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielides authored Nov 29, 2024
1 parent 8340e16 commit 94ec631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/wallet/import_wallet_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl ImportWalletScreen {

// Acquire a write lock and add the new wallet
if let Ok(mut wallets) = self.app_context.wallets.write() {
wallets.push(Arc::new(RwLock::new(wallet)));
wallets.insert(wallet.seed_hash(), Arc::new(RwLock::new(wallet)));
self.app_context.has_wallet.store(true, Ordering::Relaxed);
} else {
eprintln!("Failed to acquire write lock on wallets");
Expand Down

0 comments on commit 94ec631

Please sign in to comment.