Skip to content

Commit

Permalink
fix(demo): newsletter breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 committed Oct 10, 2024
1 parent 3cf57b4 commit 9c73b0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/demo/src/app/newsletter/newsletter.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ export class NewsletterComponent implements OnInit {

onNewsletterSubmit() {
if (this.email.valid) {
this.newsletterFacade.dispatch(new DaffNewsletterSubscribe<DaffNewsletterSubmission>(this._makeSubmission(this.email.value)));
this.newsletterFacade.dispatch(new DaffNewsletterSubscribe(this._makeSubmission(this.email.value)));
}
}
onNewsletterCancel() {
this.newsletterFacade.dispatch(new DaffNewsletterCancel());
}
onNewsletterRetry() {
this.newsletterFacade.dispatch(new DaffNewsletterRetry<DaffNewsletterSubmission>(this._makeSubmission(this.email.value)));
this.newsletterFacade.dispatch(new DaffNewsletterRetry(this._makeSubmission(this.email.value)));
}

private _makeSubmission(email: string): DaffNewsletterSubmission {
return { email };
return email;
}
}

0 comments on commit 9c73b0c

Please sign in to comment.