Skip to content

Commit

Permalink
Display correct error on contact page
Browse files Browse the repository at this point in the history
When a user doesn't write a message on the contact page, the wrong error is displayed: 'Send Message' instead of 'Please enter a message'.
  • Loading branch information
Gilrain authored Jun 7, 2021
1 parent 2a9b4e8 commit 7a5c76c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/fragments/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
class="form-control text-dark"
type="text"
data-validation
data-validation-error-msg="{{ .error | default (i18n "contact.defaultButton") }}"
data-validation-error-msg="{{ .error | default (i18n "contact.defaultMessageError") }}"
placeholder="{{ with .text }}{{ . | markdownify }}{{ end }}"
rows="4"
required></textarea>
Expand Down

0 comments on commit 7a5c76c

Please sign in to comment.