Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(frontend): reset network param when turning testnets off #3736

Conversation

AntonioVentilii
Copy link
Collaborator

Motivation

Since ,with PR #3734, we want to persist the selected network during navigation, it makes sense to reset the network param when the network selector is disabled. That means, when the testnets are disabled.

Changes

  • Delete NETWORK_PARAM when toggle is turned off.
  • Replace state.
  • Add TODO for future tests.

Tests

Screen.Recording.2024-11-25.at.11.16.32.mov

@AntonioVentilii AntonioVentilii marked this pull request as ready for review November 25, 2024 11:07
@AntonioVentilii AntonioVentilii requested a review from a team as a code owner November 25, 2024 11:07
Copy link
Member

@peterpeterparker peterpeterparker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx

@AntonioVentilii AntonioVentilii enabled auto-merge (squash) November 25, 2024 15:29
@AntonioVentilii AntonioVentilii merged commit 54adc04 into main Nov 25, 2024
17 checks passed
@AntonioVentilii AntonioVentilii deleted the feat(frontend)/reset-network-param-when-turning-testnets-off branch November 25, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants