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.
2 parents 23a41ea + 0da8183 commit ad89550Copy full SHA for ad89550
course-02/exercises/udacity-c2-frontend/src/app/api/api.service.ts
@@ -63,7 +63,7 @@ export class ApiService {
63
64
return new Promise ( resolve => {
65
this.http.request(req).subscribe((resp) => {
66
- if (resp && (<any> resp).status && (<any> resp).status === 200) {
+ if (resp && resp.type === HttpEventType.Response && (<any> resp).status && (<any> resp).status === 200) {
67
resolve(this.post(endpoint, payload));
68
}
69
});
0 commit comments