Skip to content

Commit

Permalink
Check for correct property
Browse files Browse the repository at this point in the history
  • Loading branch information
walsh9 committed Nov 14, 2018
1 parent 1b29a24 commit 3e26ed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NewsletterSignup.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class NewsletterSignup extends WidgetBase {

if (window.dataLayer) {
window.dataLayer.push({mailchimpId: this.props.mailchimpId});
if (mailchimpName) {
if (this.props.mailchimpName) {
window.dataLayer.push({mailchimpName: this.props.mailchimpName});
}
}
Expand Down

0 comments on commit 3e26ed2

Please sign in to comment.