File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/code/Magento/Checkout/view/frontend/web/js Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -61,20 +61,23 @@ define([
61
61
} ;
62
62
events [ 'click ' + this . options . button . checkout ] = $ . proxy ( function ( ) {
63
63
var cart = customerData . get ( 'cart' ) ,
64
- customer = customerData . get ( 'customer' ) ;
64
+ customer = customerData . get ( 'customer' ) ,
65
+ element = $ ( this . options . button . checkout ) ;
65
66
66
67
if ( ! customer ( ) . firstname && cart ( ) . isGuestCheckoutAllowed === false ) {
67
68
// set URL for redirect on successful login/registration. It's postprocessed on backend.
68
69
$ . cookie ( 'login_redirect' , this . options . url . checkout ) ;
69
70
70
71
if ( this . options . url . isRedirectRequired ) {
72
+ element . prop ( 'disabled' , true ) ;
71
73
location . href = this . options . url . loginUrl ;
72
74
} else {
73
75
authenticationPopup . showModal ( ) ;
74
76
}
75
77
76
78
return false ;
77
79
}
80
+ element . prop ( 'disabled' , true ) ;
78
81
location . href = this . options . url . checkout ;
79
82
} , this ) ;
80
83
You can’t perform that action at this time.
0 commit comments