Skip to content

Commit c09a481

Browse files
committed
apply JS changes to tokenized ECE
1 parent bc49aa7 commit c09a481

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

client/tokenized-express-checkout/button-ui.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,16 @@ const expressCheckoutButtonUi = {
3232

3333
renderButton: ( eceButton ) => {
3434
if ( get$Container()?.length ) {
35-
expressCheckoutButtonUi.showContainer();
3635
eceButton.mount( expressCheckoutElementId );
3736
}
3837
},
3938

4039
hideContainer: () => {
41-
get$Container().hide();
40+
get$Container().removeClass( 'is-ready' ).hide();
4241
},
4342

4443
showContainer: () => {
45-
get$Container().show();
44+
get$Container().addClass( 'is-ready' ).show();
4645
},
4746
};
4847

0 commit comments

Comments
 (0)