Skip to content

Commit

Permalink
fix(match2) Display games with resulttype but no winner on AoE (#4920)
Browse files Browse the repository at this point in the history
fix(match2) Display games with resulttype but no winner
  • Loading branch information
mbergen authored Oct 19, 2024
1 parent 6ff9d6d commit 01d8079
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/match2/wikis/ageofempires/match_summary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ local Logic = require('Module:Logic')
local Lua = require('Module:Lua')
local MapMode = require('Module:MapMode')
local Operator = require('Module:Operator')
local String = require('Module:StringUtils')
local Table = require('Module:Table')

local DisplayHelper = Lua.import('Module:MatchGroup/Display/Helper')
Expand Down Expand Up @@ -68,7 +69,7 @@ function CustomMatchSummary.createBody(match)
end

Array.forEach(match.games, function(game)
if not game.map and not game.winner then return end
if not game.map and not game.winner and String.isNotEmpty(game.resulttype) then return end
local row = MatchSummary.Row()
:addClass('brkts-popup-body-game')
:css('font-size', '0.75rem')
Expand Down

0 comments on commit 01d8079

Please sign in to comment.