Skip to content

Commit ef161d0

Browse files
committed
fix lint tests
1 parent 9dad0cf commit ef161d0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: src/three-domain-secure/api.js

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export class RestClient extends HTTPClient {
5555
method: "post",
5656
url: baseURL ?? this.baseURL ?? "",
5757
headers: {
58+
// $FlowIssue
5859
Authorization: `Basic ${accessToken}`,
5960
},
6061
...rest,

Diff for: src/three-domain-secure/component.jsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,12 @@ export class ThreeDomainSecureComponent {
102102
const authData = {
103103
grant_type: `client_credentials`,
104104
};
105-
if (this.sdkConfig.merchantID.length) {
105+
106+
if (this.sdkConfig.merchantID?.length) {
107+
// $FlowFixMe invalid error on key assignment
106108
authData.target_subject = this.sdkConfig.merchantID[0];
107109
}
108-
110+
// $FlowFixMe
109111
const accessToken = await this.restClient.authRequest<Request, string>({
110112
baseURL: `${this.sdkConfig.paypalApiDomain}${AUTH}`,
111113
accessToken: `${basicAuth}`,

0 commit comments

Comments
 (0)