Skip to content

Commit e9415a7

Browse files
authored
Fallback OptionShowPlayerNames to 'on' when it is nil
1 parent 4dd9fdb commit e9415a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/ui/override/ArmiesTable.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
local Prefs = import("/lua/user/prefs.lua")
4141

4242
---@type 'on' | 'allies-only' | 'off'
43-
OptionShowPlayerNames = Prefs.GetFromCurrentProfile('options.options_show_player_names')
43+
OptionShowPlayerNames = Prefs.GetFromCurrentProfile('options.options_show_player_names') or 'on'
4444

4545
---@param armiesTable ArmiesTable
4646
---@return ArmiesTable

0 commit comments

Comments
 (0)