From: Daniel Karbach Date: Sat, 9 Apr 2022 19:17:54 +0000 (+0200) Subject: hide apply button for non-users X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=879e02084f2a9a9e049d9b3de8bcc7e30d9c999a;p=alttp.git hide apply button for non-users --- 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