Skip to content

Commit

Permalink
fix(match2): icon class not being set properly (#5042)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz authored Nov 6, 2024
1 parent df935c1 commit 734beba
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ function MatchSummaryDetailedScore:render()
local partialScores = Array.map(self.props.partialScores or {}, function(partialScore)
local children = {partialScore.score or '', partialScore.icon}

local styles = {'brkts-popup-body-match-sidewins'}
table.insert(styles, partialScore.style)
table.insert(styles, partialScore.icon and 'brkts-popup-body-match-sidewins-icon' or nil)
local styles = Array.append({},
'brkts-popup-body-match-sidewins',
partialScore.style,
partialScore.icon and 'brkts-popup-body-match-sidewins-icon' or nil
)

return HtmlWidgets.Td{
classes = styles,
Expand Down

0 comments on commit 734beba

Please sign in to comment.