]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/pages/Tournament.js
show ropunds in reverse order
[alttp.git] / resources / js / components / pages / Tournament.js
index 5a9c8b05c207ce74db4c159559bdef5b5511b106..a5c43caf01f604055b1c077a08862fe7766f24b9 100644 (file)
@@ -36,7 +36,6 @@ const Tournament = () => {
        useEffect(() => {
                window.Echo.private(`Tournament.${id}`)
                        .listen('ResultReported', e => {
-                               console.log(e);
                                if (e.result) {
                                        setTournament(tournament => patchResult(tournament, e.result));
                                }
@@ -45,7 +44,7 @@ const Tournament = () => {
                                if (e.round) {
                                        setTournament(tournament => ({
                                                ...tournament,
-                                               rounds: [...tournament.rounds, e.round],
+                                               rounds: [e.round, ...tournament.rounds],
                                        }));
                                }
                        })