From 91440737dd6486be338fe6b55fa39da01fe018b7 Mon Sep 17 00:00:00 2001 From: Quantum Explorer Date: Tue, 12 Nov 2024 18:22:05 +0100 Subject: [PATCH] small fix --- src/ui/identities/register_dpns_name_screen.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ui/identities/register_dpns_name_screen.rs b/src/ui/identities/register_dpns_name_screen.rs index 6b44bc9..dc5cd5c 100644 --- a/src/ui/identities/register_dpns_name_screen.rs +++ b/src/ui/identities/register_dpns_name_screen.rs @@ -269,10 +269,12 @@ impl ScreenLike for RegisterDpnsNameScreen { ui.separator(); ui.add_space(10.0); - let (needed_unlock, just_unlocked) = self.render_wallet_unlock_if_needed(ui); + if self.selected_wallet.is_some() { + let (needed_unlock, just_unlocked) = self.render_wallet_unlock_if_needed(ui); - if needed_unlock && !just_unlocked { - return; + if needed_unlock && !just_unlocked { + return; + } } // Input for the name