From ddeffd3f51a2f5f90967eac6b328f53309eefe18 Mon Sep 17 00:00:00 2001 From: Zhou Fang Date: Thu, 2 Jan 2025 16:47:56 +0900 Subject: [PATCH] fix: fix the additional text --- Modules/Misc/LFGList.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/Misc/LFGList.lua b/Modules/Misc/LFGList.lua index 63359cb7..257402b6 100644 --- a/Modules/Misc/LFGList.lua +++ b/Modules/Misc/LFGList.lua @@ -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)