Skip to content

Commit

Permalink
Start on your own player sheet (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrod-lowe authored Sep 25, 2024
1 parent d800e5e commit bc67d19
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ui/src/game.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ const GameContent: React.FC<{ id: string, userEmail: string }> = ({ id, userEmai
setGame(response.data.getGame);
gameRef.current = response.data.getGame;
setUserSubject(sub);
if (response.data.getGame.playerSheets.length > 0) {
setActiveSheet(response.data.getGame.playerSheets[0].userId);
}
setActiveSheet(sub);
} catch (err) {
console.error("Error fetching game data", err);
toast.addToast(intl.formatMessage({ id: 'errorFetchingGameData' }), 'error');
Expand Down

0 comments on commit bc67d19

Please sign in to comment.