From 19ee04853672cebdc899bda1fe4040e4898f2085 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Fri, 27 Feb 2026 15:09:28 +0100 Subject: [PATCH] Set to the best guess (first city) if no option selected --- web/components/optional-profile-form.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/components/optional-profile-form.tsx b/web/components/optional-profile-form.tsx index e48d499b..0b34fff8 100644 --- a/web/components/optional-profile-form.tsx +++ b/web/components/optional-profile-form.tsx @@ -1124,6 +1124,8 @@ const CitySearchBox = (props: {onCitySelected: (city: City | undefined) => void} if (dropdownRef.current && !dropdownRef.current.contains(e.relatedTarget)) { setFocused(false) } + // Set to the best guess (first city) if no option selected + if (cities.length > 0) props.onCitySelected(cities[0]) }} />