From 208b3f333ce8766dea2b4b69b739e0fa89caaa20 Mon Sep 17 00:00:00 2001 From: FALSAL Date: Sat, 10 Aug 2024 23:07:42 +0200 Subject: [PATCH] refresh the start and main pages when city changed on mobile --- src/components/Search/Search.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Search/Search.js b/src/components/Search/Search.js index 6656c48a..4e0576c5 100644 --- a/src/components/Search/Search.js +++ b/src/components/Search/Search.js @@ -454,7 +454,8 @@ export function Search({ setCityInput(city.label); setCity(city); pageKey === "start" && updateCapCity(city.label); - + searchParams.set("city", city.value); + setSearchParams(searchParams); } hideModal();