Skip to content

Commit

Permalink
Merge pull request #769 from hackclub/tour-fix
Browse files Browse the repository at this point in the history
won't restart the tutorial if user has already done it and it is on t…
  • Loading branch information
cskartikey authored Nov 15, 2024
2 parents 41eb8fe + a435df5 commit 36d8ffc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/harbor/tabs/tour.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ export function tour() {
console.log('Setting tutorial sessionstorage to', hasCompletedTutorial)
sessionStorage.setItem('tutorial', (!hasCompletedTutorial).toString())
})

if (sessionStorage.getItem('tutorial') === 'true') {
return;
}

const currentStepId = getCookie('tour-step')
if (currentStepId) {
Expand Down

0 comments on commit 36d8ffc

Please sign in to comment.