};
};
+export const patchRound = (tournament, round) => {
+ if (!tournament) return tournament;
+ return {
+ ...tournament,
+ rounds: tournament.rounds.map(r => r.id === round.id ? round : r),
+ };
+};
+
export const sortParticipants = tournament => {
if (!tournament || !tournament.participants || !tournament.participants.length) {
return tournament;