mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Use correct translation string
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user