]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/pages/Tournament.js
fix time validation for 0
[alttp.git] / resources / js / pages / Tournament.js
index 20f34ceda7afd84ad8a35275d85f7948cb462c40..5de5dbe32758c1215cc48d30c37db0dea946b79c 100644 (file)
@@ -19,7 +19,7 @@ import {
        sortParticipants,
 } from '../helpers/Tournament';
 
-const Tournament = () => {
+export const Component = () => {
        const params = useParams();
        const { id } = params;
 
@@ -65,7 +65,6 @@ const Tournament = () => {
                                }
                        })
                        .listen('ParticipantChanged', e => {
-                               console.log(e);
                                if (e.participant) {
                                        setTournament(tournament => patchParticipant(tournament, e.participant));
                                }
@@ -136,5 +135,3 @@ const Tournament = () => {
                <Detail addRound={addRound} tournament={tournament} />
        </ErrorBoundary>;
 };
-
-export default Tournament;