Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz committed Oct 21, 2024
1 parent 9396094 commit 8974df6
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 @@ -50,13 +50,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 @@ -52,12 +52,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 8974df6

Please sign in to comment.