Skip to content

Commit

Permalink
fix(*): fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
garrappachc committed Mar 7, 2024
1 parent 39f6652 commit ef9e79e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/games/[id=number]/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const load = (async ({ params, fetch, parent }) => {
if (['created', 'configuring', 'launching', 'started'].includes(game.state)) {
const { profile } = await parent();

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

0 comments on commit ef9e79e

Please sign in to comment.