Skip to content

Commit

Permalink
Fixes a nil reference runtime error in teams search.
Browse files Browse the repository at this point in the history
  • Loading branch information
toomuchpete committed Sep 15, 2024
1 parent b2b83d6 commit e6a94d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/teams/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
%td= link_to team.name, team
%td= link_to team.league.name, team.league
%td= team.league.sport
%td= team.league_rank.ordinalize
%td= team.league_rank&.ordinalize
%td= team.record
%td= formatted_winning_percentage(team.winning_percentage)
%td= formatted_point_diff(team.point_diff)
Expand Down

0 comments on commit e6a94d6

Please sign in to comment.