diff --git a/src/components/medications/wizard/WizardStepper.tsx b/src/components/medications/wizard/WizardStepper.tsx index 7912202b9..c46848754 100644 --- a/src/components/medications/wizard/WizardStepper.tsx +++ b/src/components/medications/wizard/WizardStepper.tsx @@ -72,13 +72,18 @@ export function WizardStepper({ ? currentIndex : steps.reduce((acc, n, i) => (n <= current ? i : acc), 0); + const activeStepNumber = steps[activeIndex]; + const activeLabel = + labels[activeStepNumber] ?? String(activeStepNumber ?? current); + return (