Skip to content

Commit

Permalink
fix(queue): subqueue card options not being optional
Browse files Browse the repository at this point in the history
  • Loading branch information
D4isDAVID committed Jan 25, 2024
1 parent 7bb366a commit fc46bb5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions config/queue.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ return {
local size = params.totalQueueSize
local displayTime = params.displayTime

local cardOptions = subQueue.cardOptions or {}

local progressAmount = 7 -- amount of progress shown between the queue & server
local playerColumn = pos == 1 and progressAmount or (progressAmount - math.ceil(pos / (size / progressAmount)) + 1)

Expand Down Expand Up @@ -139,11 +141,11 @@ return {
{
type = 'TextBlock',
text = subQueue.name,
style = subQueue.cardOptions.style,
fontType = subQueue.cardOptions.fontType,
size = subQueue.cardOptions.size or 'medium',
color = subQueue.cardOptions.color,
isSubtle = subQueue.cardOptions.isSubtle,
style = cardOptions.style,
fontType = cardOptions.fontType,
size = cardOptions.size or 'medium',
color = cardOptions.color,
isSubtle = cardOptions.isSubtle,
}
},
},
Expand Down

0 comments on commit fc46bb5

Please sign in to comment.