Skip to content

Commit

Permalink
fix itinirary not changing when new city is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
Falsal committed Aug 10, 2024
1 parent 9f2c4c9 commit 479839c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/views/Main/DetailReworked.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,12 @@ useEffect(() => {
});
}


console.log("L355 , idOne :", idOne);
console.log("L356 , tourId :", tourId);
console.log("L357 , city :", city);
console.log("L356 , !!connections :", !!connections);

if (tourId && city && !connections && validTour) {
setIsTourLoading(true);

Expand All @@ -372,7 +378,7 @@ useEffect(() => {
});
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [searchParams, cityOne, idOne, validTour]);
}, [ cityOne, idOne, validTour]);


useEffect(() => {
Expand Down

0 comments on commit 479839c

Please sign in to comment.