Skip to content

Commit

Permalink
Fix context access inside module
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Oct 28, 2024
1 parent 2b58178 commit 1927d89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/components/onboarding/GuidedTour.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@
import { driver, type Driver, type DriveStep, type Config } from "driver.js";
import { get } from "svelte/store";
import { getCurrentUser } from "$lib/utils/permissions";
import { StorageManager } from "$lib/utils/storage";
import { scripts } from "./scripts";
const storage = new StorageManager("guided-tour");
const user = getCurrentUser();
let driverObj: Driver;
const driverConfig: Config = {
Expand Down Expand Up @@ -63,6 +60,9 @@

<script lang="ts">
import { onMount } from "svelte";
import { getCurrentUser } from "$lib/utils/permissions";
const user = getCurrentUser();
onMount(() => {
// do we have a tour?
Expand Down

0 comments on commit 1927d89

Please sign in to comment.