Skip to content

Commit

Permalink
Merge pull request #4 from PascalBrouwers/patch-1
Browse files Browse the repository at this point in the history
Fix skipping shipping step when logged in
  • Loading branch information
danslo authored May 6, 2019
2 parents b89dff6 + 4913451 commit 60a5cbf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/view/frontend/web/js/view/email.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ define([
},

navigateToNextStep: function () {
if (this.validateEmail()) {
var currentStep = stepNavigator.getActiveItemIndex();

if (this.validateEmail() && stepNavigator.steps()[currentStep].code == 'email') {
stepNavigator.next();
} else {
$(this.loginFormSelector + ' input[name=username]').focus();
}
}
});
});
});

0 comments on commit 60a5cbf

Please sign in to comment.