FIX: Use correct translation string

This commit is contained in:
Dan Ungureanu
2020-02-17 13:46:14 +02:00
parent d33aaa0292
commit 82b307cd52
2 changed files with 2 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ after_initialize do
poll_groups = poll.groups.split(",").map(&:downcase)
user_groups = user.groups.map { |g| g.name.downcase }
if (poll_groups & user_groups).empty?
raise StandardError.new I18n.t("js.poll.results.groups.title", group: poll.groups)
raise StandardError.new I18n.t("js.poll.results.groups.title", groups: poll.groups)
end
end