resources/js/components/Vote/SelectJudge.js
//when user clickes the create button
when user clickes the create button
when user clickes the create button
onCreateClick() {
        console.log('select', this.state.selectedGame);
        if(!this.state.selectedGame) this.state.selectedGame = this.props.selectedGame.name;
        if(!this.state.selectedPlayer) this.state.selectedPlayer = this.props.selectedPlayer.name;
        if(!this.state.selectedJudge) this.state.selectedJudge = this.props.selectedJudge.name;
        this.props.handleCreate(
            this.state.selectedGame,
            this.state.selectedPlayer,
            this.state.selectedJudge);
    }
onCreateClick ( ) { console . log ( 'select' , this . state . selectedGame ) ; if ( ! this . state . selectedGame ) this . state . selectedGame = this . props . selectedGame . name ; if ( ! this . state . selectedPlayer ) this . state . selectedPlayer = this . props . selectedPlayer . name ; if ( ! this . state . selectedJudge ) this . state . selectedJudge = this . props . selectedJudge . name ; this . props . handleCreate ( this . state . selectedGame , this . state . selectedPlayer , this . state . selectedJudge ) ; }
when user clickes the create button
when user clickes the create button