Revert "render if updated_checkout event was missed"

This reverts commit e3577bdff9.
This commit is contained in:
Kirill Braslavsky 2021-03-04 12:33:32 +02:00
parent e3577bdff9
commit a984853b5f
2 changed files with 0 additions and 8 deletions

View file

@ -79,11 +79,6 @@ document.addEventListener(
} }
const script = document.createElement('script'); const script = document.createElement('script');
PayPalCommerceGateway.checkoutUpdatedFlag = false;
jQuery(document.body).on('updated_checkout', () => {
PayPalCommerceGateway.checkoutUpdatedFlag = true;
});
script.addEventListener('load', (event) => { script.addEventListener('load', (event) => {
bootstrap(); bootstrap();
}); });

View file

@ -11,9 +11,6 @@ class CheckoutBootstap {
init() { init() {
if(PayPalCommerceGateway.checkoutUpdatedFlag){
this.render();
}
jQuery(document.body).on('updated_checkout', () => { jQuery(document.body).on('updated_checkout', () => {
this.render(); this.render();
}); });