Skip to content

Commit

Permalink
fix: fix the additional text
Browse files Browse the repository at this point in the history
  • Loading branch information
fang2hou committed Jan 2, 2025
1 parent 5c7f71d commit ddeffd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Modules/Misc/LFGList.lua
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,10 @@ function LL:UpdateEnumerate(Enumerate)
local color = score and C_ChallengeMode_GetDungeonScoreRarityColor(score) or { r = 1.0, g = 1.0, b = 1.0 }
scoreText = C.StringWithRGB(score, color)

local bestRun = result.leaderDungeonScoreInfo and result.leaderDungeonScoreInfo.bestRunLevel
local bestRun = result.leaderDungeonScoreInfo and result.leaderDungeonScoreInfo[1] and result.leaderDungeonScoreInfo[1].bestRunLevel
if bestRun then
local template = result.leaderDungeonScoreInfo.finishedSuccess and "success" or "greyLight"
bestText = C.StringByTemplate("+" .. result.leaderDungeonScoreInfo.bestRunLevel, template)
local template = result.leaderDungeonScoreInfo[1].finishedSuccess and "success" or "greyLight"
bestText = C.StringByTemplate("+" .. bestRun, template)
end

self:UpdateAdditionalText(button, scoreText, bestText)
Expand Down

0 comments on commit ddeffd3

Please sign in to comment.