diff --git a/src/app/regular-giving/regular-giving.component.ts b/src/app/regular-giving/regular-giving.component.ts index 81d080313..8e881f79b 100644 --- a/src/app/regular-giving/regular-giving.component.ts +++ b/src/app/regular-giving/regular-giving.component.ts @@ -61,12 +61,12 @@ export class RegularGivingComponent implements OnInit { } this.donor = donor; + this.campaign = this.route.snapshot.data.campaign; + if ( !this.campaign.isRegularGiving ) { console.error("Campaign " + this.campaign.id + " is not a regular giving campaign"); } - this.campaign = this.route.snapshot.data.campaign; - this.mandateForm = this.formBuilder.group({ donationAmount: ['', [ requiredNotBlankValidator,