Skip to content

Commit

Permalink
Remove unused wrapping in set-shipping-information-mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaScorpion committed Jan 24, 2024
1 parent c6b4917 commit e207b0c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions view/frontend/web/js/action/set-shipping-information-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@
define(
[
'Magento_Checkout/js/model/quote',
'mage/utils/wrapper',
'Parcelpro_Shipment/js/model/shipping-save-processor'
],
function (quote, wrapper, shippingSaveProcessor) {
function (quote, shippingSaveProcessor) {
'use strict';

return function (setShippingInformationAction) {

return wrapper.wrap(setShippingInformationAction, function (original) {
return shippingSaveProcessor.saveShippingInformation(quote.shippingAddress()?.getType());
});
return function () {
return shippingSaveProcessor.saveShippingInformation(quote.shippingAddress()?.getType());
};
}
);

0 comments on commit e207b0c

Please sign in to comment.