Skip to content

Commit

Permalink
clear popped up stop callout
Browse files Browse the repository at this point in the history
  • Loading branch information
bwees committed Feb 7, 2024
1 parent 3239c5a commit de50595
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/components/sheets/RouteDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const RouteDetails: React.FC<SheetProps> = ({ sheetRef }) => {
const setSelectedStop = useAppStore(state => state.setSelectedStop);
const stopEstimates = useAppStore((state) => state.stopEstimates);
const setStopEstimates = useAppStore(state => state.setStopEstimates);
const setPoppedUpStopCallout = useAppStore(state => state.setPoppedUpStopCallout);

// Controls SegmentedControl
const [selectedDirectionIndex, setSelectedDirectionIndex] = useState(0);
Expand All @@ -42,7 +43,9 @@ const RouteDetails: React.FC<SheetProps> = ({ sheetRef }) => {
clearSelectedRoute();
setStopEstimates([]);
setSelectedRouteDirection(null);

setSelectedStop(null);
setPoppedUpStopCallout(null);

// reset direction selector
setSelectedDirectionIndex(0);
Expand Down

0 comments on commit de50595

Please sign in to comment.