Skip to content

Commit

Permalink
Merge pull request #54 from polymo1/master
Browse files Browse the repository at this point in the history
fix: instructions button not working correctly
  • Loading branch information
f1shy-dev authored Jul 30, 2024
2 parents 118c14f + 2fe7735 commit ef6d5fe
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 ef6d5fe

Please sign in to comment.