mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
💄 Hide spinner when smart buttons are deactivated
This commit is contained in:
parent
5e4157d488
commit
3200b05e48
1 changed files with 4 additions and 0 deletions
|
@ -324,6 +324,10 @@ const bootstrap = () => {
|
|||
messagesBootstrap.init();
|
||||
|
||||
apmButtonsInit( PayPalCommerceGateway );
|
||||
|
||||
if ( ! renderer.useSmartButtons ) {
|
||||
buttonsSpinner.unblock();
|
||||
}
|
||||
};
|
||||
|
||||
document.addEventListener( 'DOMContentLoaded', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue