diff --git a/app/presenters/hotwire_combobox/component.rb b/app/presenters/hotwire_combobox/component.rb index d2be79c..2ecd1bf 100644 --- a/app/presenters/hotwire_combobox/component.rb +++ b/app/presenters/hotwire_combobox/component.rb @@ -206,7 +206,7 @@ def name_when_new_on_multiselect_must_match_original_name unless name_when_new.to_s == hidden_field_name errors.add :name_when_new, :must_match_original_name, - message: "must match the regular name ('#{name}', in this case) on multiselect comboboxes." + message: "must match the regular name ('#{hidden_field_name}', in this case) on multiselect comboboxes." end end