Skip to content

Commit dc84fed

Browse files
committed
event_callback on enquiry submission
1 parent 0ea041f commit dc84fed

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tutorcruncher-socket",
3-
"version": "1.3.13",
3+
"version": "1.3.14",
44
"description": "TutorCruncher socket",
55
"author": "Samuel Colvin <samuel@tutorcruncher.com>",
66
"private": false,

src/components/shared/EnquiryForm.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class EnquiryForm extends Component {
5454
if (r.status === 201) {
5555
this.props.root.ga_event('enquiry-form', 'submitted', this.props.mode)
5656
this.setState({submitted: true})
57+
this.props.config.event_callback('enquiry_submitted', {mode: this.props.mode, data})
5758
} else {
5859
console.warn('Invalid form:', r)
5960
this.setState({error: true})

0 commit comments

Comments
 (0)