};
const ApplyButton = ({ tournament, user }) => {
- if (!tournament.accept_applications || isRunner(user, tournament)) return null;
+ if (!user || !tournament.accept_applications || isRunner(user, tournament)) return null;
return <span className="d-inline-block" title={getTitle(user, tournament)}>
<Button