Skip to content

Commit

Permalink
Remove unnecessary quotes, use dot accessing for properties
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaScorpion committed Jan 24, 2024
1 parent 83aca92 commit c6b4917
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions view/frontend/web/js/model/shipping-save-processor/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ define(

payload = {
addressInformation: {
'shipping_address': quote.shippingAddress(),
'billing_address': quote.billingAddress(),
'shipping_method_code': quote.shippingMethod()['method_code'],
'shipping_carrier_code': quote.shippingMethod()['carrier_code']
shipping_address: quote.shippingAddress(),
billing_address: quote.billingAddress(),
shipping_method_code: quote.shippingMethod().method_code,
shipping_carrier_code: quote.shippingMethod().carrier_code
}
};

Expand All @@ -82,7 +82,7 @@ define(
).done(
function (response) {
quote.setTotals(response.totals);
paymentService.setPaymentMethods(methodConverter(response['payment_methods']));
paymentService.setPaymentMethods(methodConverter(response.payment_methods));
fullScreenLoader.stopLoader();
}
).fail(
Expand Down

0 comments on commit c6b4917

Please sign in to comment.