Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions src/app/services/contactUs.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,10 @@ export interface ISendEmail {
})
export class ContactUsService {
protected BASE_URL = environment.BASE_URL;
private debug = true;

constructor(private http: HttpClient) { }

sendEmail(form: IContactUs): Observable<ISendEmail> {
if (this.debug) {
return of({
form: {
firstName: "",
lastName: "",
email: "",
organization: "",
roleInOrganization: "",
message: "",
privacyAccepted: false,
marketingAccepted: false
}
}).pipe(delay(3000));
}

return this.http.post<ISendEmail>(`${this.BASE_URL}/to-do`, form);
return this.http.post<ISendEmail>(`${this.BASE_URL}/contact-us`, form);
}
}
Loading