Skip to content

Commit

Permalink
hotfix for newcomers not being able to view v2 registration page (#9937)
Browse files Browse the repository at this point in the history
  • Loading branch information
dunkOnIT authored Sep 10, 2024
1 parent d2ff483 commit 2303e0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/registrations/register.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
connectedAccountId: @competition.payment_account_for(:stripe)&.account_id,
qualifications: {
wcif: @competition.qualification_wcif,
personalRecords: { single: current_user.person.ranksSingle.map(&:to_wcif), average: current_user.person.ranksAverage.map(&:to_wcif) }
personalRecords: {
single: current_user.person&.ranksSingle&.map(&:to_wcif) || [],
average: current_user.person&.ranksAverage&.map(&:to_wcif) || [],
}
}
}) %>
<% else %>
Expand Down

0 comments on commit 2303e0a

Please sign in to comment.