Skip to content

Commit

Permalink
hotfix: fix register page not rendering for users with cannot_registe…
Browse files Browse the repository at this point in the history
…r_for_competition_reasons? not empty
  • Loading branch information
FinnIckler committed Dec 9, 2024
1 parent b1c1b44 commit a14dd54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/registrations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ def do_add

def register
@competition = competition_from_params
if current_user
@registration = @competition.registrations.find_or_initialize_by(user_id: current_user.id, competition_id: @competition.id)
end
end

def payment_denomination
Expand Down

0 comments on commit a14dd54

Please sign in to comment.