diff --git a/src/components/GuideTour.tsx b/src/components/GuideTour.tsx index f8533b59..837dbcd5 100644 --- a/src/components/GuideTour.tsx +++ b/src/components/GuideTour.tsx @@ -25,11 +25,7 @@ const GuideTour = () => { setStepIndex(stepIndex); const hasSeenTutorial = localStorage.getItem('hasSeenTutorial'); - if (!hasSeenTutorial) { - setRunTour(true); - } else { - setRunTour(false); - } + setRunTour(!hasSeenTutorial); }, []); const handleTourEnd = () => {