We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3603b2 commit 37eea03Copy full SHA for 37eea03
1 file changed
src/app/services/contactUs.service.ts
@@ -14,26 +14,10 @@ export interface ISendEmail {
14
})
15
export class ContactUsService {
16
protected BASE_URL = environment.BASE_URL;
17
- private debug = true;
18
19
constructor(private http: HttpClient) { }
20
21
sendEmail(form: IContactUs): Observable<ISendEmail> {
22
- if (this.debug) {
23
- return of({
24
- form: {
25
- firstName: "",
26
- lastName: "",
27
- email: "",
28
- organization: "",
29
- roleInOrganization: "",
30
- message: "",
31
- privacyAccepted: false,
32
- marketingAccepted: false
33
- }
34
- }).pipe(delay(3000));
35
36
-
37
- return this.http.post<ISendEmail>(`${this.BASE_URL}/to-do`, form);
+ return this.http.post<ISendEmail>(`${this.BASE_URL}/contact-us`, form);
38
}
39
0 commit comments