From a3509e4f3885b64dca01d2d4803521cc4f09a8d1 Mon Sep 17 00:00:00 2001 From: Barney Laurance Date: Tue, 26 Mar 2024 14:09:30 +0000 Subject: [PATCH] DON-950: Remove usage of ngx-matomo library from Donation Start Form --- .../donation-start-form/donation-start-form.component.spec.ts | 4 ---- .../donation-start-form/donation-start-form.component.ts | 4 +--- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/app/donation-start/donation-start-form/donation-start-form.component.spec.ts b/src/app/donation-start/donation-start-form/donation-start-form.component.spec.ts index 9efdbc26b..38dc8c733 100644 --- a/src/app/donation-start/donation-start-form/donation-start-form.component.spec.ts +++ b/src/app/donation-start/donation-start-form/donation-start-form.component.spec.ts @@ -50,10 +50,6 @@ function makeDonationStartFormComponent(donationService: DonationService,) { undefined as unknown as ElementRef, undefined as unknown as FormBuilder, mockIdentityService, - { - trackEvent: () => { - } - } as unknown as MatomoTracker, { trackEvent: () => { } diff --git a/src/app/donation-start/donation-start-form/donation-start-form.component.ts b/src/app/donation-start/donation-start-form/donation-start-form.component.ts index 8e383bf83..6d3a6c638 100644 --- a/src/app/donation-start/donation-start-form/donation-start-form.component.ts +++ b/src/app/donation-start/donation-start-form/donation-start-form.component.ts @@ -22,8 +22,7 @@ import {MatSnackBar} from '@angular/material/snack-bar'; import {MatStepper} from '@angular/material/stepper'; import {ActivatedRoute, Router} from '@angular/router'; import {RecaptchaComponent} from 'ng-recaptcha'; -import {MatomoTracker} from 'ngx-matomo'; -import {MatomoTracker as MatomoClientTracker} from 'ngx-matomo-client'; +import {MatomoTracker} from 'ngx-matomo-client'; import {debounceTime, distinctUntilChanged, retryWhen, startWith, switchMap, tap} from 'rxjs/operators'; import { PaymentIntent, @@ -250,7 +249,6 @@ export class DonationStartFormComponent implements AfterContentChecked, AfterCon private formBuilder: FormBuilder, private identityService: IdentityService, private matomoTracker: MatomoTracker, - private matomoClientTracker: MatomoClientTracker, private pageMeta: PageMetaService, private postcodeService: PostcodeService, @Inject(PLATFORM_ID) private platformId: Object,