Skip to content

Commit e6a94d6

Browse files
committed
Fixes a nil reference runtime error in teams search.
1 parent b2b83d6 commit e6a94d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎app/views/teams/index.html.haml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
%td= link_to team.name, team
2424
%td= link_to team.league.name, team.league
2525
%td= team.league.sport
26-
%td= team.league_rank.ordinalize
26+
%td= team.league_rank&.ordinalize
2727
%td= team.record
2828
%td= formatted_winning_percentage(team.winning_percentage)
2929
%td= formatted_point_diff(team.point_diff)

0 commit comments

Comments
 (0)