today_ai_weather/app/views/weather_arts
songtianlun 0bca23ff77
Some checks failed
Docker Dev / docker (push) Has been cancelled
CI / scan_ruby (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
Docker Main / docker (push) Has been cancelled
fix: correct state name presence check
- Update condition to check for state presence instead of name
- Ensure proper rendering of state badge in city and weather art views

This change improves the logic for displaying the state badge by
checking for the presence of the state object directly, which
prevents potential errors when the state name is not set. It
ensures that the badge is displayed correctly when a state is
associated with a city or weather art.
2025-04-26 00:29:33 +08:00
..
_card.html.erb feat: add image alt text generation 2025-04-10 22:37:27 +08:00
_weather_stats.html.erb feat: add translatable name module for countries and regions 2025-02-21 23:46:25 +08:00
show.html.erb fix: correct state name presence check 2025-04-26 00:29:33 +08:00