Skip to content

Commit

Permalink
Revert "Merge pull request #14 from BearGroup/asd-738"
Browse files Browse the repository at this point in the history
This reverts commit 1551418, reversing
changes made to ac87b1f.
  • Loading branch information
jaybeckr committed Aug 25, 2021
1 parent 505b6aa commit b00bf03
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions view/frontend/web/js/view/shipping.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
define(
[
'jquery',
'Amazon_Pay/js/model/storage',
'uiRegistry',
'Magento_Checkout/js/model/checkout-data-resolver'
'Amazon_Pay/js/model/storage'
],
function (
$,
amazonStorage,
registry,
checkoutDataResolver
amazonStorage
) {
'use strict';

Expand All @@ -25,10 +21,8 @@ define(
* Initialize shipping
*/
initialize: function () {
this.showFormPopUp();
this._super();
this.isNewAddressAdded(true);
this.refreshShippingRegion();
return this;
},

Expand All @@ -41,14 +35,6 @@ define(
$(loginFormSelector).validation();

return $(loginFormSelector + ' input[type=email]').valid();
},

refreshShippingRegion: function() {
var checkoutProvider = registry.get('checkoutProvider');

checkoutProvider.on('shippingAddress.region_id', function (regionId) {
checkoutDataResolver.resolveEstimationAddress();
});
}
});
}
Expand Down

0 comments on commit b00bf03

Please sign in to comment.