We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e46091 commit fc81584Copy full SHA for fc81584
src/app/homepage/newsletter/services/newsletter.service.ts
@@ -1,6 +1,6 @@
1
import { HttpClient } from '@angular/common/http';
2
import { Injectable } from '@angular/core';
3
-import { empty } from 'rxjs';
+import { of } from 'rxjs';
4
import { catchError } from 'rxjs/operators';
5
6
@Injectable({ providedIn: 'root' })
@@ -12,7 +12,7 @@ export class NewsletterService {
12
'https://z93f42xq2l.execute-api.us-east-2.amazonaws.com/Stage/newsletter?token=db1f899025b5a59a76b6b34b2a013893';
13
return this.httpClient
14
.post(newsletterUrl, { email })
15
- .pipe(catchError(() => empty()))
+ .pipe(catchError(() => of()))
16
.toPromise();
17
}
18
0 commit comments