diff --git a/app/views/teams/show.html.erb b/app/views/teams/show.html.erb
index 405f23b..2520b4f 100644
--- a/app/views/teams/show.html.erb
+++ b/app/views/teams/show.html.erb
@@ -18,7 +18,7 @@
<%= f.submit "Request To Join", class: 'button' %>
- <% elsif cuser.teamers.joining.first.team != @team %>
+ <% elsif cuser.teamers.joining.first&.team&. != @team %>
<%= 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?" } %>