Skip to content

Commit

Permalink
Fix skipping shipping step when logged in
Browse files Browse the repository at this point in the history
See #3
  • Loading branch information
PascalBrouwers authored May 6, 2019
1 parent b89dff6 commit 4913451
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 4913451

Please sign in to comment.