Small fix on policy_change variables

This commit is contained in:
Nathan Schneider
2022-08-23 17:11:00 -06:00
parent b09a7a24b4
commit ec0e4aa9c1

View File

@ -64,15 +64,15 @@ function change_policy:initiate(result)
self.org:delete_process(self.id)
return
end
local readable_value =
tostring(modpol.modules[mod_choice][policy_choice])
if readable_value == "nil" then
readable_value = "none"
end
modpol.interactions.dropdown_query(
self.initiator, "Choose a policy to change:",
policy_list,
function(policy_choice)
local readable_value =
tostring(modpol.modules[mod_choice][policy_choice])
if readable_value == "nil" then
readable_value = "none"
end
modpol.interactions.text_query(
self.initiator,
"Current " .. policy_choice .. " value: "