Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz committed Oct 19, 2024
1 parent a9b13e2 commit 1359205
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions components/match2/wikis/dota2/match_summary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,11 @@ function CustomMatchSummary._createGame(game, gameIndex)
end
end

-- Add Comment
local comment = {}
if Logic.isNotEmpty(game.comment) then
comment = {
MatchSummary.Break():create(),
HtmlWidgets.Div{css = {margin = 'auto'}, children = game.comment},
}
end
-- Map Comment
local comment = Logic.isNotEmpty(game.comment) and {
MatchSummary.Break():create(),
HtmlWidgets.Div{css = {margin = 'auto'}, children = game.comment},
} or {}

return MatchSummaryWidgets.Row{
classes = {'brkts-popup-body-game'},
Expand Down

0 comments on commit 1359205

Please sign in to comment.