Skip to content

Commit ddeffd3

Browse files
committed
fix: fix the additional text
1 parent 5c7f71d commit ddeffd3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/Misc/LFGList.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,10 @@ function LL:UpdateEnumerate(Enumerate)
328328
local color = score and C_ChallengeMode_GetDungeonScoreRarityColor(score) or { r = 1.0, g = 1.0, b = 1.0 }
329329
scoreText = C.StringWithRGB(score, color)
330330

331-
local bestRun = result.leaderDungeonScoreInfo and result.leaderDungeonScoreInfo.bestRunLevel
331+
local bestRun = result.leaderDungeonScoreInfo and result.leaderDungeonScoreInfo[1] and result.leaderDungeonScoreInfo[1].bestRunLevel
332332
if bestRun then
333-
local template = result.leaderDungeonScoreInfo.finishedSuccess and "success" or "greyLight"
334-
bestText = C.StringByTemplate("+" .. result.leaderDungeonScoreInfo.bestRunLevel, template)
333+
local template = result.leaderDungeonScoreInfo[1].finishedSuccess and "success" or "greyLight"
334+
bestText = C.StringByTemplate("+" .. bestRun, template)
335335
end
336336

337337
self:UpdateAdditionalText(button, scoreText, bestText)

0 commit comments

Comments
 (0)