]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/pages/Tournament.js
add seed display
[alttp.git] / resources / js / components / pages / Tournament.js
index 64c890609333608f1701941676849ec8308d28f7..aab442346149865aa01f5bc47185a56f6200eede 100644 (file)
@@ -7,7 +7,7 @@ import ErrorMessage from '../common/ErrorMessage';
 import Loading from '../common/Loading';
 import NotFound from '../pages/NotFound';
 import Detail from '../tournament/Detail';
-import { patchResult } from '../../helpers/Tournament';
+import { patchResult, sortParticipants } from '../../helpers/Tournament';
 
 const Tournament = () => {
        const params = useParams();
@@ -24,7 +24,7 @@ const Tournament = () => {
                        .then(response => {
                                setError(null);
                                setLoading(false);
-                               setTournament(response.data);
+                               setTournament(sortParticipants(response.data));
                        })
                        .catch(error => {
                                setError(error);