Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias RAIGNE <[email protected]>
  • Loading branch information
btafforeau and Matt75 authored Jan 9, 2024
1 parent e0a434a commit 0f7e4d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions _dev/js/front/src/components/common/paypal-sdk.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@ export class PayPalSdkComponent extends BaseComponent {
this.promise = new Promise((resolve, reject) => {
loadScript(this.config.sdkConfig)
.then((paypal) => {
console.log('paypal sdk loaded');
this.sdk = paypal;
resolve(this.sdk);
})
.catch((error) => {
console.error('paypal sdk loading failed', error);
console.error('Unable to load the PayPal JavaScript SDK.', error);
reject();
});
});
Expand Down

0 comments on commit 0f7e4d7

Please sign in to comment.