Skip to content

Commit

Permalink
Merge pull request #750 from hackclub/run-fmt
Browse files Browse the repository at this point in the history
Run fmt
  • Loading branch information
maxwofford authored Nov 13, 2024
2 parents 4ccd4a0 + f7d17d6 commit 2c3846d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions src/app/harbor/tabs/tour.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions src/app/utils/airtable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,6 @@ export async function safePerson(): Promise<SafePerson> {
}

export const fetchTutorialCompletionStatus = async (): Promise<boolean> => {
const person = await getSelfPerson(slackId);
return person.fields.academy_completed === true;
};
const person = await getSelfPerson(slackId)
return person.fields.academy_completed === true
}

0 comments on commit 2c3846d

Please sign in to comment.