From 879e02084f2a9a9e049d9b3de8bcc7e30d9c999a Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Sat, 9 Apr 2022 21:17:54 +0200 Subject: [PATCH] hide apply button for non-users --- resources/js/components/tournament/ApplyButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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