mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-28 13:31:06 +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">
|
<div class="controls inline">
|
||||||
<%= f.submit "Request To Join", class: 'button' %>
|
<%= f.submit "Request To Join", class: 'button' %>
|
||||||
</div>
|
</div>
|
||||||
<% elsif cuser.teamers.joining.first.team != @team %>
|
<% elsif cuser.teamers.joining.first&.team&. != @team %>
|
||||||
<div class="controls inline">
|
<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?" } %>
|
<%= 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>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue