Skip to content

Commit

Permalink
Merge pull request #201 from HarborWallet/add-a-mint-cta
Browse files Browse the repository at this point in the history
less annoying cta
  • Loading branch information
futurepaul authored Feb 28, 2025
2 parents 31eb31e + f9c5c44 commit 0f726d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion harbor-ui/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand All @@ -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;
}
Expand Down

0 comments on commit 0f726d5

Please sign in to comment.