mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-23 05:01:17 +10:00
fix: remaining type issues
This commit is contained in:
@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user