Skip to content

Commit ff56a6e

Browse files
fix: show unfortunately text only for outside Oregon selection
- 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>
1 parent aecb916 commit ff56a6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/pages/Chat/components/CitySelectField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default function CitySelectField({ setMessages }: Props) {
6060
return (
6161
<div className="flex flex-col gap-2">
6262
<p className="text-center text-[#888] mb-10">
63-
{city
63+
{city === "other"
6464
? "Unfortunately we can only answer questions about tenant rights in Oregon right now."
6565
: "Welcome to Tenant First Aid! I can answer your questions about tenant rights in Oregon. To get started, what city are you located in?"}
6666
</p>

0 commit comments

Comments
 (0)