Skip to content

Commit

Permalink
refresh the start and main pages when city changed on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Falsal committed Aug 10, 2024
1 parent 5042598 commit 208b3f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Search/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 208b3f3

Please sign in to comment.