diff --git a/pages/store/[id]/index.vue b/pages/store/[id]/index.vue index 28c4927..4aeac95 100644 --- a/pages/store/[id]/index.vue +++ b/pages/store/[id]/index.vue @@ -55,9 +55,7 @@ {{ - DateTime.fromJSDate(game.mReleased).toFormat( - "Do MMMM, YYYY" - ) + DateTime.fromISO(game.mReleased).toFormat("d MMMM, yyyy") }} @@ -171,18 +169,17 @@ import { StarIcon } from "@heroicons/vue/24/solid"; import { type Game, type GameVersion } from "@prisma/client"; import { micromark } from "micromark"; import { DateTime } from "luxon"; +import { SerializeObject } from "nitropack"; import { PlatformClient } from "~/composables/types"; -import { ref } from "vue"; -import AddLibraryButton from "~/components/AddLibraryButton.vue"; const route = useRoute(); const gameId = route.params.id.toString(); const user = useUser(); -const game = await $dropFetch( - `/api/v1/games/${gameId}` -); +const game = await $dropFetch< + SerializeObject & { versions: GameVersion[] } +>(`/api/v1/games/${gameId}`); // Preview description (first 30 lines) const showPreview = ref(true);