From 2fe77359dba84f84188d1fa0eb40256c0a6fd88c Mon Sep 17 00:00:00 2001 From: Wesley Bryie Date: Tue, 30 Jul 2024 17:37:38 -0400 Subject: [PATCH] fix: instructions button not working correctly --- src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index f5d55d8..e9f31c6 100644 --- a/src/index.js +++ b/src/index.js @@ -102,14 +102,14 @@ const update = (act) => { setupContent.classList.remove('translate-y-[10px]'); }, 300); setupPrevBtn.classList.toggle('hidden', act == 0); - setupNextBtn.classList.toggle('hidden', act == 3); - $('#setup-btn-wrap').classList.toggle('onlyprev', act == 3); + setupNextBtn.classList.toggle('hidden', act == 4); + $('#setup-btn-wrap').classList.toggle('onlyprev', act == 4); }; setupNextBtn.addEventListener('click', () => { let activeStep = $('#setup-stepper li.active'); let activeStepIndex = setupStepper.indexOf(activeStep); - if (activeStepIndex == 3) return; + if (activeStepIndex == 4) return; update(activeStepIndex + 1); });