Skip to content

Commit 9634b78

Browse files
committed
MC-41704: PP PayLater for Checkout Page
-- fix code style
1 parent 1878e17 commit 9634b78

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/code/Magento/Paypal/Block/PayLater/LayoutProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
declare(strict_types=1);
88

9-
namespace Magento\PayPal\Block\PayLater;
9+
namespace Magento\Paypal\Block\PayLater;
1010

1111
use Magento\Checkout\Block\Checkout\LayoutProcessorInterface;
1212
use Magento\Paypal\Model\PayLaterConfig;

app/code/Magento/Paypal/view/frontend/web/js/view/amountProviders/product.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ define([
2121
defaults: {
2222
priceBoxSelector: '.price-box',
2323
qtyFieldSelector: '#product_addtocart_form [name="qty"]',
24-
amount: null,
24+
amount: null
2525
},
2626
qty: 1,
2727
price: 0,
@@ -84,12 +84,12 @@ define([
8484
* @private
8585
*/
8686
_updateAmount: function () {
87-
var amount = this.price * this.qty;
87+
var amount = this.price * this.qty,
88+
payLater = registry.get(this.parentName);
8889

8990
if (amount !== 0) {
90-
var payLater = registry.get(this.parentName);
9191
payLater.amount(amount);
9292
}
93-
},
93+
}
9494
});
9595
});

app/code/Magento/Paypal/view/frontend/web/js/view/paylater.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ define([
3232
amountComponentConfig: {
3333
name: '${ $.name }.amountProvider',
3434
component: ''
35-
},
35+
}
3636
},
3737
paypal: null,
3838
amount: null,

0 commit comments

Comments
 (0)