X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Ftournament%2FApplyButton.js;h=a6bde2f7ac5e622e4321d6056c83f0f4802aab9d;hb=f446d5bcf3b87bd9443a060e27e9c0601c96fbb9;hp=601eb938e5f46d4e525da90737599e9c935ebc80;hpb=d34eaa32d939ebf82a86a1d87c2162774512ef12;p=alttp.git diff --git a/resources/js/components/tournament/ApplyButton.js b/resources/js/components/tournament/ApplyButton.js index 601eb93..a6bde2f 100644 --- a/resources/js/components/tournament/ApplyButton.js +++ b/resources/js/components/tournament/ApplyButton.js @@ -30,7 +30,7 @@ const getTitle = (user, tournament) => { }; const ApplyButton = ({ tournament, user }) => { - if (!tournament.accept_applications || isRunner(user, tournament)) return null; + if (!user || !tournament.accept_applications || isRunner(user, tournament)) return null; return