Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Commit ef9e79e

Browse files
committed
fix(*): fix compile error
1 parent 39f6652 commit ef9e79e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/routes/games/[id=number]/+page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const load = (async ({ params, fetch, parent }) => {
1313
if (['created', 'configuring', 'launching', 'started'].includes(game.state)) {
1414
const { profile } = await parent();
1515

16-
const mySlot = game.slots.find(slot => slot.player.id === profile.player.id);
16+
const mySlot = game.slots.find(slot => slot.player.id === profile?.player.id);
1717
if (mySlot && ['active', 'waiting for substitute'].includes(mySlot.status)) {
1818
// I'm a member of this game
1919
isMyGame = true;

0 commit comments

Comments
 (0)