Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lua/wikis/rocketleague/Ratings/Display/List.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ function RatingsDisplayList.build(teamRankings)
:allDone()

Array.forEach(teams, function(team, rank)
if (team.streak == nil) or (team.rating == nil) then
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parentheses around the nil checks are unnecessary in Lua. The condition can be simplified to: if team.streak == nil or team.rating == nil then

Copilot uses AI. Check for mistakes.
return
end
Comment on lines +36 to +38
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skipping teams with nil streak or rating values will cause the rank numbers to be incorrect. The rank is passed from Array.forEach which counts all teams including skipped ones. Consider filtering teams before the forEach loop to maintain accurate rankings, or adjust the rank counter when teams are skipped.

Copilot uses AI. Check for mistakes.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nếu


local chart = mw.ext.Charts.chart({
xAxis = {
type = 'category',
Expand Down
Loading