Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
fix: existingLabel to NewsletterWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
CanRau committed Oct 23, 2020
1 parent effcc40 commit 673064c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/NewsletterWidget/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export class Newsletter extends Component {
return request
.post(this.props.endpoint, payload.join(`&`))
.then((result) => {
// console.log({ result })
if (result === `Ok`) {
this.reset()
localStore.removeItem(`NewsletterForm`)
Expand Down
2 changes: 1 addition & 1 deletion src/templates/ContactPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ const ContactPage = (props) => {
submitLabel={page.frontmatter.form.contact.submitLabel}
lang={props.pageContext.lang}
emailErrorLabel={page.frontmatter.form.errors.emailErrorLabel}
existingLabel={page.frontmatter.form.errors.existingLabel}
requiredLabel={page.frontmatter.form.errors.requiredLabel}
generalErrorLabel={page.frontmatter.form.errors.generalErrorLabel}
endpoint={
Expand Down Expand Up @@ -147,6 +146,7 @@ const ContactPage = (props) => {
submitLabel={page.frontmatter.form.newsletter.submitLabel}
lang={props.pageContext.lang}
emailErrorLabel={page.frontmatter.form.errors.emailErrorLabel}
existingLabel={page.frontmatter.form.errors.existingLabel}
generalErrorLabel={page.frontmatter.form.errors.generalErrorLabel}
endpoint={
isProduction
Expand Down

0 comments on commit 673064c

Please sign in to comment.