[F] Fix type check
This commit is contained in:
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import App from "./App.svelte";
|
import App from "./App.svelte";
|
||||||
import { Backend, type Checkpoint } from "./utils";
|
import { Backend, type MetaCheckpoint } from "./utils";
|
||||||
|
|
||||||
// Get puzzle id from params
|
// Get puzzle id from params
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
const puzzleId = urlParams.get("puzzle");
|
const puzzleId = urlParams.get("puzzle");
|
||||||
const edit = urlParams.get("edit");
|
const edit = urlParams.get("edit");
|
||||||
let puzzleData: Checkpoint | null = null;
|
let puzzleData: MetaCheckpoint | null = null;
|
||||||
let error: string | null = null;
|
let error: string | null = null;
|
||||||
|
|
||||||
if (!edit) {
|
if (!edit) {
|
||||||
|
|||||||
Reference in New Issue
Block a user