From 2c4b340d91d3067953f9a1b6a474effcc7feaa09 Mon Sep 17 00:00:00 2001 From: Sakimori Date: Fri, 10 Sep 2021 09:38:43 -0700 Subject: [PATCH] really allowed 0 inter-div and inter-conf games. also allowed odd conferences, i think --- simmadome/src/CreateLeague.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/simmadome/src/CreateLeague.tsx b/simmadome/src/CreateLeague.tsx index ac80796..26f1f2f 100644 --- a/simmadome/src/CreateLeague.tsx +++ b/simmadome/src/CreateLeague.tsx @@ -305,7 +305,6 @@ function validRequest(name:string, structure: LeagueStructureState, options:Leag validNumber(options.top_postseason) && validNumber(options.wildcards, 0) && - structure.subleagues.length % 2 === 0 && getDuplicateTeams(structure).size === 0 && structure.subleagues.every((subleague, si) => @@ -580,9 +579,9 @@ function LeagueOptions(props: {state: LeagueOptionsState, dispatch: React.Dispat
props.dispatch({type: 'set_intra_division_series', value: value})} showError={props.showError}/> - + props.dispatch({type: 'set_inter_division_series', value: value})} showError={props.showError}/> - + props.dispatch({type: 'set_inter_league_series', value: value})} showError={props.showError}/>
@@ -603,4 +602,4 @@ function NumberInput(props: {title: string, value: string, setValue: (newVal: st ); } -export default CreateLeague; \ No newline at end of file +export default CreateLeague;