Skip to content

Commit

Permalink
Catch a nil in ppt import (#3338)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjpalpha authored Oct 2, 2023
1 parent 2e3a32f commit ef7dab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/prize_pool/commons/prize_pool_import.lua
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ function Import._computeBracketPlacementEntries(matchRecords, options)
entry.opponent
and entry.opponent.type == Opponent.literal
and Opponent.toName(entry.opponent):lower() == BYE_OPPONENT_NAME
) and (not Import.config.ignoreNonScoreEliminations or entry.opponent.status == SCORE_STATUS)
) and (not Import.config.ignoreNonScoreEliminations or not entry.opponent or entry.opponent.status == SCORE_STATUS)
end)
end

Expand Down

0 comments on commit ef7dab1

Please sign in to comment.