Skip to content

Commit

Permalink
Fix white screen of death on game sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
gvorbeck committed Jan 24, 2024
1 parent 16c7e6e commit f8b8c1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/PageGameSheet/PageGameSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const PageGameSheet: React.FC<
const [showScoutAbilities, setShowScoutAbilities] = React.useState(false);
const isMobile = useMediaQuery({ query: mobileBreakpoint });
const addPlayerFormClassNames = classNames({
"w-1/2": !game?.players.length,
"w-1/2": !game?.players?.length,
});
const gameBinderClassNames = classNames({ "w-1/2 shrink-0": !isMobile });

Expand Down Expand Up @@ -72,7 +72,7 @@ const PageGameSheet: React.FC<
userIsOwner={userIsOwner}
className="mb-4"
/>
{!!game.players.length && (
{!!game.players?.length && (
<PlayerList
players={game.players}
setShowThiefAbilities={setShowThiefAbilities}
Expand All @@ -84,7 +84,7 @@ const PageGameSheet: React.FC<
/>
)}
</div>
{!!game.players.length && (
{!!game.players?.length && (
<GameBinder
players={game.players}
showThiefAbilities={showThiefAbilities}
Expand Down

0 comments on commit f8b8c1c

Please sign in to comment.