Browse Source

Small bugfixes

Nathan Schneider 1 year ago
parent
commit
df20cc835b
2 changed files with 8 additions and 8 deletions
  1. 3 3
      modpol_core/interactions/interactions.lua
  2. 5 5
      modpol_core/modules/consent.lua

+ 3 - 3
modpol_core/interactions/interactions.lua

@@ -172,7 +172,7 @@ function modpol.interactions.org_dashboard(user, org_string)
    local processes = {}
    for i,v in ipairs(org.processes) do
       if v ~= "deleted" then
-         processes[i] = org.processes[v]
+         processes[i] = org.processes[i]
       end
    end
    local process_msg = #processes .. " total processes"
@@ -346,14 +346,14 @@ function modpol.interactions.display(user, title, message, completion)
       modpol.interactions.message(
          self.initiator, "Error: input not typed for display")
       if completion then completion() else
-         modpol.intereactions.dashboard(user)
+         modpol.interactions.dashboard(user)
       end
    end
    print(message)
    print("\nEnter to continue")
    io.read()
    if completion then completion() else
-      modpol.intereactions.dashboard(user)
+      modpol.interactions.dashboard(user)
    end
 end
 

+ 5 - 5
modpol_core/modules/consent.lua

@@ -2,10 +2,10 @@
 -- @module consent
 
 local consent = {
-    name = "Consent process",
-    slug = "consent",
-    desc = "A utility module other modules use for consent decisions",
-    hide = true
+   name = "Consent process",
+   slug = "consent",
+   desc = "A utility module other modules use for consent decisions",
+   hide = true
 }
 
 consent.data = {
@@ -14,7 +14,7 @@ consent.data = {
 
 consent.config = {
    prompt = "Do you consent?",
-    votes_required = false
+   votes_required = false
 }
 
 --- Initiate consent