Skip to content

Commit

Permalink
fix: instructions button not working correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
polymo1 committed Jul 30, 2024
1 parent 118c14f commit 2fe7735
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down

0 comments on commit 2fe7735

Please sign in to comment.