Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz committed Oct 22, 2024
1 parent 9c2d2ab commit 4cbf7a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/match2/wikis/mobilelegends/match_summary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ end
function CustomMatchSummary.createBody(match)
local showCountdown = match.timestamp ~= DateExt.defaultTimestamp
local characterBansData = MatchSummary.buildCharacterBanData(match.games, MAX_NUM_BANS)
local casterRow = MatchSummary.makeCastersRow(match.extradata.casters)

return MatchSummaryWidgets.Body{children = WidgetUtil.collect(
showCountdown and MatchSummaryWidgets.Row{children = DisplayHelper.MatchCountdownBlock(match)} or nil,
unpack(Array.map(match.games, FnUtil.curry(CustomMatchSummary._createGame, match.date))),
MatchSummaryWidgets.Mvp(match.extradata.mvp),
MatchSummaryWidgets.CharacterBanTable{bans = characterBansData, date = match.date},
MatchSummary.makeCastersRow(match.extradata.casters):create()
casterRow and casterRow:create() or nil
)}
end

Expand Down
3 changes: 2 additions & 1 deletion components/match2/wikis/smite/match_summary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ end
function CustomMatchSummary.createBody(match)
local showCountdown = match.timestamp ~= DateExt.defaultTimestamp
local characterBansData = MatchSummary.buildCharacterBanData(match.games, MAX_NUM_BANS)
local casterRow = MatchSummary.makeCastersRow(match.extradata.casters)

return MatchSummaryWidgets.Body{children = WidgetUtil.collect(
showCountdown and MatchSummaryWidgets.Row{children = DisplayHelper.MatchCountdownBlock(match)} or nil,
unpack(Array.map(match.games, FnUtil.curry(CustomMatchSummary._createGame, match.date))),
MatchSummaryWidgets.CharacterBanTable{bans = characterBansData, date = match.date},
MatchSummary.makeCastersRow(match.extradata.casters):create()
casterRow and casterRow:create() or nil
)}
end

Expand Down

0 comments on commit 4cbf7a3

Please sign in to comment.