Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Commit

Permalink
Fix maxturns input
Browse files Browse the repository at this point in the history
  • Loading branch information
wschella committed Mar 26, 2018
1 parent 5d74bbb commit f1dd204
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions planetwars/client/app/components/play2/PlayPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ export class MatchSetup extends React.Component<IMatchSetupProps, IMatchSetupSta
type: 'number',
placeholder: '200',
value: this.state.maxTurns,
onInput: (evt: any) => this.setState({ maxTurns: evt.target.value }),
onChange: (evt: any) => this.setState({ maxTurns: evt.target.value }),
onInput: (evt: any) => this.setState({ maxTurns: parseInt(evt.target.value, 10) }),
onChange: (evt: any) => this.setState({ maxTurns: parseInt(evt.target.value, 10) }),
}),
]),
]);
Expand Down

0 comments on commit f1dd204

Please sign in to comment.