Skip to content

fix: show unfortunately text only for outside Oregon selection #139

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

Merged
merged 1 commit into from
Jun 22, 2025

Conversation

KentShikama
Copy link
Member

Fixes #134

This PR fixes the location selection text flashing issue by ensuring that only selections outside of Oregon show the "Unfortunately..." message immediately, while Oregon cities maintain the welcome message during loading.

Changes

  • Updated text display logic from {city ? to {city === "other" ?
  • Oregon cities now keep welcome message during loading (no flash)
  • Outside Oregon selection shows "Unfortunately..." text immediately

How It Works

  1. No selection/Oregon cities: Shows welcome message
  2. Outside Oregon selection: Shows "Unfortunately..." message immediately
  3. No text flashing: Oregon cities maintain consistent text during loading

Generated with Claude Code

- Changed condition from `city ?` to `city === "other" ?`
- Oregon cities now keep welcome message during loading (no flash)
- Outside Oregon selection shows "Unfortunately..." text immediately
- Fixes issue where all city selections showed unfortunately message

Co-authored-by: Kent Shikama <KentShikama@users.noreply.github.com>
@leekahung
Copy link
Contributor

Yeah! This certainly works. 👍

Given we have just cities in Oregon, Oregon at large, and an "others" category at the moment, think we can go with this solution.

We could come back to this later if we end up expanding this to other states.

@KentShikama KentShikama merged commit d00250a into main Jun 22, 2025
7 checks passed
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.

Location selection flashing wrong text for a split second before moving into chat
2 participants