Skip to content

Commit

Permalink
fix remaining bug with previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Falsal committed Sep 8, 2024
1 parent c19d1b7 commit 77b69c6
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/views/Main/DetailReworked.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,10 @@ const DetailReworked = (props) => {
// };

const goToSearchPage = () => {
!!searchParams
?
navigate(`/search/?${searchParams.toString()}`)
!!cityOne && (cityOne !== "no-city") ?
navigate(`/search?city=${cityOne}`)
:
!!cityOne ? navigate(`/search/?${!!cityOne}`)
:
navigate(`/search/?city=${!!cityOne}`);

// window.location.reload();
navigate(`/search`);
};

const LoadingSpinner = () => (
Expand Down

0 comments on commit 77b69c6

Please sign in to comment.