Skip to content

Commit

Permalink
fixed - issue 21596
Browse files Browse the repository at this point in the history
  • Loading branch information
niravkrish authored and saphaljha committed Apr 29, 2019
1 parent 4992141 commit 9b9d451
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions app/code/Magento/Checkout/view/frontend/web/js/view/payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,21 @@ define([
navigate: function () {
var self = this;

getPaymentInformation().done(function () {
self.isVisible(true);
});
if(!self.hasShippingMethod()) {
this.isVisible(false);
stepNavigator.setHash('shipping');
} else {
getPaymentInformation().done(function () {
self.isVisible(true);
});
}
},

/**
* @return {Boolean}
*/
hasShippingMethod: function () {
return window.checkoutConfig.selectedShippingMethod !== null;
},

/**
Expand Down

0 comments on commit 9b9d451

Please sign in to comment.