From 01d8079bccd6b1b6818094794f5c3f5cb2d40206 Mon Sep 17 00:00:00 2001 From: mbergen Date: Sat, 19 Oct 2024 17:59:16 +0200 Subject: [PATCH] fix(match2) Display games with resulttype but no winner on AoE (#4920) fix(match2) Display games with resulttype but no winner --- components/match2/wikis/ageofempires/match_summary.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/match2/wikis/ageofempires/match_summary.lua b/components/match2/wikis/ageofempires/match_summary.lua index 014f9a0ce25..587eda527f6 100644 --- a/components/match2/wikis/ageofempires/match_summary.lua +++ b/components/match2/wikis/ageofempires/match_summary.lua @@ -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') @@ -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')