default value bug

This commit is contained in:
Baipyrus 2023-10-31 15:21:16 +01:00
parent c8550dc38f
commit a0b073c608

View File

@ -44,7 +44,7 @@ end
function format_percent(options, number, mult)
-- multiply by default
local percent = number
if mult or true then
if mult == nil or mult == true then
percent = number * 100
end