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