Skip to content

Commit

Permalink
change if statement blocking email input until there was a email inpu…
Browse files Browse the repository at this point in the history
…t in options for mailchimp and constantcontact
  • Loading branch information
ConzorKingKong committed Apr 20, 2016
1 parent e407f4b commit 57b6ac9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ var renderers = Object.freeze({
element.addEventListener("click", hide);
}

if (options.goal === "signup" && !options.email) {
if (options.signupDestination === "email" && !options.email) {
var emailInput = element.querySelector("form input[type='email']");
var submitInput = element.querySelector("form input[type='submit']");

Expand Down
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ import * as renderers from "./renderers"
element.addEventListener("click", hide)
}

if (options.goal === "signup" && !options.email) {
if (options.signupDestination === "email" && !options.email) {
const emailInput = element.querySelector("form input[type='email']")
const submitInput = element.querySelector("form input[type='submit']")

Expand Down

0 comments on commit 57b6ac9

Please sign in to comment.