Skip to content

Commit b00e55f

Browse files
sorahclaude
andcommitted
ConferencesController#index: redirect to latest sponsorship when no open conferences
Previously showed a blank page when logged in but no conference had applications open. Now falls back to the user's most recent active sponsorship. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ce4f04c commit b00e55f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/controllers/conferences_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ def index
66

77
if @conferences.one?
88
redirect_to user_conference_sponsorship_path(@conferences.first)
9+
elsif @conferences.empty? && current_available_sponsorships&.exists?
10+
redirect_to user_conference_sponsorship_path(current_available_sponsorships.first.conference)
911
end
1012
end
1113
end

0 commit comments

Comments
 (0)