(next: StepId)
| 145 | const stepIndex = STEP_ORDER.indexOf(stepId) |
| 146 | |
| 147 | const goToStep = (next: StepId): void => { |
| 148 | setStepId(next) |
| 149 | const nextIdx = STEP_ORDER.indexOf(next) |
| 150 | if (nextIdx > maxReachedIndex) setMaxReachedIndex(nextIdx) |
| 151 | } |
| 152 | const goNext = (): void => { |
| 153 | const next = STEP_ORDER[stepIndex + 1] |
| 154 | if (next) goToStep(next) |
no outgoing calls
no test coverage detected