Skip to content

Commit 5b2bfaa

Browse files
committed
add and remove the is-ready class as well as keep the container hiding
1 parent 5c53982 commit 5b2bfaa

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

client/express-checkout/button-ui.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,11 @@ const expressCheckoutButtonUi = {
3838
},
3939

4040
hideContainer: () => {
41-
get$Container().hide();
41+
get$Container().removeClass( 'is-ready' ).hide();
4242
},
4343

4444
showContainer: () => {
45-
get$Container().show();
46-
get$Container().addClass( 'is-ready' );
47-
},
48-
49-
markAsReady: () => {
50-
get$Container()
51-
.closest( '.wcpay-express-checkout-wrapper' )
52-
.addClass( 'is-ready' );
45+
get$Container().addClass( 'is-ready' ).show();
5346
},
5447
};
5548

0 commit comments

Comments
 (0)