Skip to content

Commit 37eea03

Browse files
authored
Use real contact-use path (#236)
1 parent f3603b2 commit 37eea03

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

src/app/services/contactUs.service.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,10 @@ export interface ISendEmail {
1414
})
1515
export class ContactUsService {
1616
protected BASE_URL = environment.BASE_URL;
17-
private debug = true;
1817

1918
constructor(private http: HttpClient) { }
2019

2120
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);
21+
return this.http.post<ISendEmail>(`${this.BASE_URL}/contact-us`, form);
3822
}
3923
}

0 commit comments

Comments
 (0)