Skip to content

Commit 5c7f71d

Browse files
committed
fix: typo
1 parent f2e6f4d commit 5c7f71d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Modules/Misc/LFGList.lua

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ end
109109

110110
local affixAddedAtLevel = { 2, 4, 7, 10, 12 }
111111

112-
local avaliableSortMode = {
112+
local availableSortMode = {
113113
"DEFAULT",
114114
"OVERALL_SCORE",
115115
"DUNGEON_SCORE",
@@ -494,7 +494,7 @@ function LL:RefreshSearch()
494494
_G.LFGListSearchPanel_DoSearch(_G.LFGListFrame.SearchPanel)
495495
end
496496

497-
function LL:InitalizeRightPanel()
497+
function LL:InitializeRightPanel()
498498
if self.rightPanel then
499499
return
500500
end
@@ -1176,14 +1176,14 @@ function LL:InitalizeRightPanel()
11761176

11771177
if btn.sortBy then
11781178
local currentModeID
1179-
for i, mode in ipairs(avaliableSortMode) do
1179+
for i, mode in ipairs(availableSortMode) do
11801180
if mode == btn.sortBy then
11811181
currentModeID = i
11821182
break
11831183
end
11841184
end
11851185

1186-
btn.sortBy = currentModeID and avaliableSortMode[currentModeID + 1] or avaliableSortMode[1]
1186+
btn.sortBy = currentModeID and availableSortMode[currentModeID + 1] or availableSortMode[1]
11871187
end
11881188

11891189
sortByButton.text:SetText(sortMode[btn.sortBy].text)
@@ -1242,7 +1242,7 @@ function LL:UpdateRightPanel()
12421242
end
12431243

12441244
if not self.rightPanel then
1245-
self:InitalizeRightPanel()
1245+
self:InitializeRightPanel()
12461246
end
12471247

12481248
if not _G.LFGListFrame.SearchPanel:IsShown() or not _G.LFGListFrame.SearchPanel.categoryID == 2 then
@@ -1313,8 +1313,8 @@ function LL:UpdateRightPanel()
13131313
self.rightPanel.sortPanel.sortByButton.sortBy = dfDB.sortBy
13141314
self.rightPanel.sortPanel.sortByButton.text:SetText(sortMode[dfDB.sortBy].text)
13151315
else
1316-
self.rightPanel.sortPanel.sortByButton.sortBy = avaliableSortMode[1]
1317-
self.rightPanel.sortPanel.sortByButton.text:SetText(sortMode[avaliableSortMode[1]].text)
1316+
self.rightPanel.sortPanel.sortByButton.sortBy = availableSortMode[1]
1317+
self.rightPanel.sortPanel.sortByButton.text:SetText(sortMode[availableSortMode[1]].text)
13181318
end
13191319

13201320
self.rightPanel.sortPanel.sortByButton:SetActive(false)
@@ -1467,7 +1467,7 @@ function LL.OnUpdateResultListEnclosure(lfg)
14671467
end
14681468
end
14691469

1470-
local sortBy = dfDB.sortBy or avaliableSortMode[1]
1470+
local sortBy = dfDB.sortBy or availableSortMode[1]
14711471
if sortMode[sortBy].func then
14721472
sort(waitForSortingResults, function(a, b)
14731473
if not a or not b then

0 commit comments

Comments
 (0)