mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
Fix a bug in team page
This commit is contained in:
parent
78a089bc86
commit
04dc76b632
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
|||
<div class="controls inline">
|
||||
<%= f.submit "Request To Join", class: 'button' %>
|
||||
</div>
|
||||
<% elsif cuser.teamers.joining.first.team != @team %>
|
||||
<% elsif cuser.teamers.joining.first&.team&. != @team %>
|
||||
<div class="controls inline">
|
||||
<%= f.submit "Request To Join", class: 'button', data: { confirm: "You have already requested to join #{cuser.teamers.joining.first.team}. Do you want to request to join #{@team} instead?" } %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue