Skip to content

Commit a9ca0f6

Browse files
fixed condition when can show password input. Fixed logic for pulling email value from persistent storage
1 parent 1116437 commit a9ca0f6

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/Checkout/view/frontend/web/js/view/form/element

1 file changed

+2
-1
lines changed

app/code/Magento/Checkout/view/frontend/web/js/view/form/element/email.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ define([
113113

114114
$.when(this.isEmailCheckComplete).done(function () {
115115
this.isPasswordVisible(false);
116+
checkoutData.setCheckedEmailValue('');
116117
}.bind(this)).fail(function () {
117118
this.isPasswordVisible(true);
118119
checkoutData.setCheckedEmailValue(this.email());
@@ -192,7 +193,7 @@ define([
192193
* @returns {Boolean} - initial visibility state.
193194
*/
194195
resolveInitialPasswordVisibility: function () {
195-
if (checkoutData.getInputFieldEmailValue() !== '' && checkoutData.getCheckedEmailValue() === '') {
196+
if (checkoutData.getInputFieldEmailValue() !== '' && checkoutData.getCheckedEmailValue() !== '') {
196197
return true;
197198
}
198199

0 commit comments

Comments
 (0)