From f9c5c44baf4a7da80995d32af27452b6c3443abc Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Fri, 28 Feb 2025 14:06:40 -0600 Subject: [PATCH] less annoying cta --- harbor-ui/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/harbor-ui/src/main.rs b/harbor-ui/src/main.rs index 049c920..ced5e7e 100644 --- a/harbor-ui/src/main.rs +++ b/harbor-ui/src/main.rs @@ -399,6 +399,9 @@ impl HarborWallet { } // Internal app state stuff like navigation and text inputs Message::Navigate(route) => { + // Hide the add_a_mint_cta as soon as the user navs anywhere + self.show_add_a_mint_cta = false; + match self.active_route { // Reset the seed words state when we leave the settings screen Route::Settings => { @@ -419,7 +422,6 @@ impl HarborWallet { _ => match route { Route::Mints(_) => { // Hide the add a mint cta when navigating to mints - self.show_add_a_mint_cta = false; self.has_navigated_to_mints = true; self.active_route = route; }