fix: remaining type issues

This commit is contained in:
DecDuck
2025-09-25 12:13:07 +10:00
parent 55878bdf5f
commit 4c9a2c681a
21 changed files with 120 additions and 136 deletions

View File

@ -254,7 +254,13 @@ import { StarIcon } from "@heroicons/vue/24/solid";
import { micromark } from "micromark";
const route = useRoute();
const gameId = route.params.id.toString();
const gameId = route.params.id?.toString();
if (!gameId)
throw createError({
statusCode: 404,
message: "Game not found",
fatal: true,
});
const user = useUser();