We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c857c6 commit 4a7701bCopy full SHA for 4a7701b
src/Umbraco.Commerce.Checkout/Client/src/surface/index.ts
@@ -58,12 +58,14 @@ function init() {
58
// Enable / disable continue button when accepting terms
59
const acceptTermsEl = document.getElementById('accept-terms') as HTMLInputElement;
60
const continueBtn = document.getElementById('continue') as HTMLButtonElement;
61
- if (acceptTermsEl) {
+ if (continueBtn) {
62
+ if (acceptTermsEl) {
63
acceptTermsEl.addEventListener('change', () => {
- continueBtn.disabled = !acceptTermsEl.checked;
64
+ continueBtn.disabled = !acceptTermsEl.checked;
65
});
- } else {
66
+ } else {
67
continueBtn.disabled = false;
68
+ }
69
}
70
71
0 commit comments