diff --git a/src/app/harbor/tabs/tour.ts b/src/app/harbor/tabs/tour.ts index bc5bba52..008944e5 100644 --- a/src/app/harbor/tabs/tour.ts +++ b/src/app/harbor/tabs/tour.ts @@ -2,7 +2,7 @@ import Shepherd, { type Tour } from 'shepherd.js' import './shepherd.css' import { offset } from '@floating-ui/dom' import Cookies from 'js-cookie' -import { fetchTutorialCompletionStatus } from '../../utils/airtable'; +import { fetchTutorialCompletionStatus } from '../../utils/airtable' const waitForElement = ( selector: string, @@ -59,7 +59,10 @@ const t = new Shepherd.Tour({ let hasSetUp = false export async function tour() { const tutorialCompletionStatus = await fetchTutorialCompletionStatus() - sessionStorage.setItem('tutorial', tutorialCompletionStatus ? 'true' : 'false') + sessionStorage.setItem( + 'tutorial', + tutorialCompletionStatus ? 'true' : 'false', + ) const currentStepId = getCookie('tour-step') if (currentStepId) { diff --git a/src/app/utils/airtable.ts b/src/app/utils/airtable.ts index d8230455..19778fe3 100644 --- a/src/app/utils/airtable.ts +++ b/src/app/utils/airtable.ts @@ -153,6 +153,6 @@ export async function safePerson(): Promise { } export const fetchTutorialCompletionStatus = async (): Promise => { - const person = await getSelfPerson(slackId); - return person.fields.academy_completed === true; -}; + const person = await getSelfPerson(slackId) + return person.fields.academy_completed === true +}