Skip to content

Commit

Permalink
Fix name_when_new validation message
Browse files Browse the repository at this point in the history
  • Loading branch information
chloerei committed May 21, 2024
1 parent e7dd68b commit 6529207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/hotwire_combobox/component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6529207

Please sign in to comment.