diff --git a/app/commands/decidim/anonymous_codes/admin/update_code_group.rb b/app/commands/decidim/anonymous_codes/admin/update_code_group.rb index 4fc1068..15b79db 100644 --- a/app/commands/decidim/anonymous_codes/admin/update_code_group.rb +++ b/app/commands/decidim/anonymous_codes/admin/update_code_group.rb @@ -10,13 +10,13 @@ def initialize(form, code_group) end def call - return broadcast(:invalid) if @form.invalid? + return broadcast(:invalid) if form.invalid? transaction do update_code_group end - broadcast(:ok, @code_group) + broadcast(:ok, code_group) end private