MCPcopy Create free account
hub / github.com/danja/dogalog / handleNext

Method handleNext

src/tutorial/tutorialOverlay.js:171–178  ·  view source on GitHub ↗

* Handle next button click

()

Source from the content-addressed store, hash-verified

169 * Handle next button click
170 */
171 handleNext() {
172 const currentStep = this.manager.getCurrentStep();
173 if (currentStep === tutorialSteps.length - 1) {
174 this.manager.complete();
175 } else {
176 this.manager.next();
177 }
178 }
179
180 /**
181 * Handle tutorial completion

Callers 2

createOverlayMethod · 0.95
setupEventListenersMethod · 0.95

Calls 3

getCurrentStepMethod · 0.80
completeMethod · 0.80
nextMethod · 0.80

Tested by

no test coverage detected