Skip to content

Commit

Permalink
#100 - gerando aleatorio
Browse files Browse the repository at this point in the history
  • Loading branch information
dalacquar committed Jun 26, 2023
1 parent b391a32 commit 6cac893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/championshipHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const ChampionshipHeader: React.FC<ChampionshipHeaderProps> = ({ championship, t
const timesAleatorizados: Team[] = [...teamsChampionship].sort(compararAleatoriamente);
setTeamsChampionship(timesAleatorizados)
if(timesAleatorizados.length >= championship.min_teams){
setChaveamento(gerar_partidas(teamsChampionship, rodada, num_matches_no_oponnent))
setChaveamento(gerar_partidas(timesAleatorizados, rodada, num_matches_no_oponnent))
}
}
} else {
Expand Down

0 comments on commit 6cac893

Please sign in to comment.