Skip to content

Commit 9b32360

Browse files
committed
fix: inject webengage service
1 parent 9cdfb48 commit 9b32360

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/pods/components/jobs/job-view/component.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default class JobViewComponent extends Component {
88
@service currentUser
99
@service router
1010
@service store
11+
@service webengage
1112

1213
showTakeTestModal = false
1314
showApplyToJobModal = false
@@ -50,7 +51,7 @@ export default class JobViewComponent extends Component {
5051
yield jobApplication.save()
5152
this.set('jobApplication', jobApplication)
5253
this.set('showApplyToJobModal', false)
53-
this.webengage.track("Hire: Apply To Job", {})
54+
this.webengage.trackEvent("Hire: Apply To Job", {})
5455
} catch (err) {
5556

5657
if (err.errors[0].title == 'Not eligible for this Job') {
@@ -62,7 +63,7 @@ export default class JobViewComponent extends Component {
6263

6364
@action
6465
takeToProfileEditor(step = 3) {
65-
this.webengage.track("Complete Profile and Apply", {})
66+
this.webengage.trackEvent("Complete Profile and Apply", {})
6667
this.router.transitionTo('applicants.profile.me', { queryParams: { job_id: this.job.id, step } })
6768
}
6869

0 commit comments

Comments
 (0)