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 f87a2f5 commit 3ef47a5Copy full SHA for 3ef47a5
src/models/EmailJSResponseStatus.ts
@@ -3,7 +3,7 @@ export class EmailJSResponseStatus {
3
public text: string;
4
5
constructor(httpResponse: XMLHttpRequest | null) {
6
- this.status = httpResponse?.status || 0;
7
- this.text = httpResponse?.responseText || 'Network Error';
+ this.status = httpResponse ? httpResponse.status : 0;
+ this.text = httpResponse ? httpResponse.responseText : 'Network Error';
8
}
9
0 commit comments