Skip to content

Fix AvalancheCenterSelectorModal Error State#1139

Merged
kevinherdez merged 1 commit intoNWACus:mainfrom
kevinherdez:kevinherdez/badNetworkExperience
Mar 31, 2026
Merged

Fix AvalancheCenterSelectorModal Error State#1139
kevinherdez merged 1 commit intoNWACus:mainfrom
kevinherdez:kevinherdez/badNetworkExperience

Conversation

@kevinherdez
Copy link
Copy Markdown
Collaborator

@kevinherdez kevinherdez commented Mar 17, 2026

This fixes an issue I ran into when I didn't have good reception. It's possible for the network calls used by the AvalancheCenterSelectorModal to fail while the map loads fine. This causes the error state for the modal to be shown even if the modal isn't shown

IMG_1082

The fix moves the error state inside the modal itself so that it's only rendered, if the modal needs to be rendered (based off the visible and loading flags)

Error inside the modal
Simulator Screenshot - iPhone 17 Pro - 2026-03-17 at 13 29 57

I also cleaned up the modal in general:

  • Removed SafeAreaProvider and SafeAreaView in favor of safeAreaInsets that was already being used in the view
  • Removed the top level View. The VStack taking up 100% of the height fills the view by itself
  • Remove the View that was needed "to paint the very bottom of the screen white". I just changed the background colors in the content so I could achieve the same effect

@kevinherdez kevinherdez added this pull request to the merge queue Mar 31, 2026
Merged via the queue into NWACus:main with commit 1dd9f85 Mar 31, 2026
5 checks passed
@kevinherdez kevinherdez deleted the kevinherdez/badNetworkExperience branch March 31, 2026 16:49
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