Skip to content

Commit

Permalink
Merge pull request #26 from tutorcruncher/enquiry-submission-event
Browse files Browse the repository at this point in the history
event_callback on enquiry submission
  • Loading branch information
tomhamiltonstubber authored Dec 7, 2018
2 parents 0ea041f + dc84fed commit a59b795
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tutorcruncher-socket",
"version": "1.3.13",
"version": "1.3.14",
"description": "TutorCruncher socket",
"author": "Samuel Colvin <[email protected]>",
"private": false,
Expand Down
1 change: 1 addition & 0 deletions src/components/shared/EnquiryForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class EnquiryForm extends Component {
if (r.status === 201) {
this.props.root.ga_event('enquiry-form', 'submitted', this.props.mode)
this.setState({submitted: true})
this.props.config.event_callback('enquiry_submitted', {mode: this.props.mode, data})
} else {
console.warn('Invalid form:', r)
this.setState({error: true})
Expand Down

0 comments on commit a59b795

Please sign in to comment.