Skip to content

Commit cac9ab0

Browse files
skip invite if in a team
1 parent 4520ce5 commit cac9ab0

File tree

1 file changed

+1
-0
lines changed
  • packages/hacker_dashboard_portal/app/controllers/hacker_dashboard_portal/concerns

1 file changed

+1
-0
lines changed

packages/hacker_dashboard_portal/app/controllers/hacker_dashboard_portal/concerns/controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def ensure_emergency_contact_exists
4343
end
4444

4545
def current_invitation
46+
return if current_user.team
4647
return unless cookies.encrypted[:invite_token]
4748

4849
@invitation ||= ::Hackathon::Invitation.find_by(

0 commit comments

Comments
 (0)