Skip to content

Commit aa73562

Browse files
authored
Merge pull request #766 from hackclub/malted/fix-async-tour
Fix async tour
2 parents 9e40952 + 44ae263 commit aa73562

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/app/harbor/tabs/tour.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,9 @@ const t = new Shepherd.Tour({
5757
})
5858

5959
let hasSetUp = false
60-
export async function tour() {
61-
const tutorialCompletionStatus = await fetchTutorialCompletionStatus()
62-
sessionStorage.setItem(
63-
'tutorial',
64-
tutorialCompletionStatus ? 'true' : 'false',
60+
export function tour() {
61+
fetchTutorialCompletionStatus().then((res) =>
62+
sessionStorage.setItem('tutorial', res.toString()),
6563
)
6664

6765
const currentStepId = getCookie('tour-step')

0 commit comments

Comments
 (0)