]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/results/List.js
tournament admins
[alttp.git] / resources / js / components / results / List.js
index 9ad089632c5b6e035c9799646cf3a178fe5c4d8e..cdd90e847e91785b587ee8376f30912f67ba91f4 100644 (file)
@@ -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 }) => <div className="results d-flex flex-wrap">
-       {sortByResult(tournament.participants, round).map(participant =>
+       {sortByResult(getRunners(tournament), round).map((participant, index) =>
                <Item
+                       index={index}
                        key={participant.id}
                        participant={participant}
                        round={round}