X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fresults%2FList.js;h=cdd90e847e91785b587ee8376f30912f67ba91f4;hb=6c3125ca01833f7cec3659353840dbe1ddfb0fc6;hp=448736a97bef7ee787ba6b7987f66ec9f370ced8;hpb=14bee4bbb112ddab53914fa777be6004debeb5c4;p=alttp.git diff --git a/resources/js/components/results/List.js b/resources/js/components/results/List.js index 448736a..cdd90e8 100644 --- a/resources/js/components/results/List.js +++ b/resources/js/components/results/List.js @@ -3,10 +3,12 @@ import React from 'react'; import Item from './Item'; import { sortByResult } from '../../helpers/Participant'; +import { getRunners } from '../../helpers/Tournament'; -const List = ({ round, tournament }) =>
- {sortByResult(tournament.participants, round).map(participant => +const List = ({ round, tournament }) =>
+ {sortByResult(getRunners(tournament), round).map((participant, index) =>