Skip to content

Commit

Permalink
🔧 Fix small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
emilijadunoska committed Sep 5, 2024
1 parent 51e1a4c commit e2fb735
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,7 @@ export default function TourSteps(): JSX.Element {
const {action, index, status, type} = data;

// If the tour is finished, skipped or closed
if (
([STATUS.FINISHED, STATUS.SKIPPED] as string[]).includes(status) ||
action === ACTIONS.CLOSE ||
action === ACTIONS.STOP
) {
if (([STATUS.FINISHED, STATUS.SKIPPED] as string[]).includes(status) || action === ACTIONS.CLOSE) {
dispatch(selectDate(savedUserDataSelection.current?.date || '2024-07-08')); // Restore the original date in the data selection
dispatch(selectScenario(savedUserDataSelection.current?.scenario || 0)); // Restore the original selected scenario in the data selection
savedUserDataSelection.current = null; // Reset the saved preferences after the tour is completed
Expand Down

0 comments on commit e2fb735

Please sign in to comment.