Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Commit

Permalink
Remove default list selection in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Patane97 committed Apr 4, 2024
1 parent c6e6a85 commit 466d4a3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Components/Games/NewGame.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@ class NewGame extends React.Component {
this.onChessClockTimeLimitChange = this.onChessClockTimeLimitChange.bind(this);
this.onDelayToStartClockChange = this.onDelayToStartClockChange.bind(this);

const defaultRestrictedList = props.restrictedLists.filter(rl => rl.official)[0];

this.state = {
selectedMode: `none:${defaultRestrictedList && defaultRestrictedList._id}`,
selectedMode: 'none:none',
eventId: 'none',
restrictedListId: defaultRestrictedList && defaultRestrictedList._id,
restrictedListId: 'none',
optionsLocked: false,
spectators: true,
showHand: false,
Expand Down

0 comments on commit 466d4a3

Please sign in to comment.