Disable "Add payment method" button while adding card

This commit is contained in:
Daniel Hüsken 2024-11-14 16:16:50 +01:00
parent 707dfa6d8c
commit b8e85fe3f2
No known key found for this signature in database
GPG key ID: 9F732DA37FA709E8

View file

@ -95,11 +95,11 @@ import {
) {
return;
}
document.getElementById('place_order').disabled = true;
event.preventDefault();
cardFields.submit().catch( ( error ) => {
console.error( error );
document.getElementById('place_order').disabled = false;
} );
} );
} );