Skip to content

Commit

Permalink
Fixed bug on payment-options.component.js (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rzial authored Feb 11, 2022
1 parent 9aafb31 commit 1f36d12
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,12 @@ export class PaymentOptionsComponent extends BaseComponent {
);

paymentButton.disabled = !this.data.conditions.isChecked();
paymentButton.classList.remove('disabled');

this.data.conditions.onChange(() => {
paymentButton.disabled = !this.data.conditions.isChecked();
setTimeout(() => {
paymentButton.disabled = !this.data.conditions.isChecked();
}, 0);
});

this.children.expressCheckoutButton.append(paymentButton);
Expand Down

0 comments on commit 1f36d12

Please sign in to comment.