diff --git a/apps/wallet-mobile/src/components/StepperProgress/StepperProgress.tsx b/apps/wallet-mobile/src/components/StepperProgress/StepperProgress.tsx index c1176178b0..433665dd37 100644 --- a/apps/wallet-mobile/src/components/StepperProgress/StepperProgress.tsx +++ b/apps/wallet-mobile/src/components/StepperProgress/StepperProgress.tsx @@ -24,9 +24,8 @@ export const StepperProgress = ({currentStep, currentStepTitle, totalSteps, styl if (currentStep > totalSteps) throw new Error("StepperProgress: currentStep can't be greater that totalSteps") - // 4 non empty icons - // 3 empty icons - if (4 < totalSteps || 3 < totalSteps) throw new Error('StepperProgress: total steps greater that number of icons') + // 4 non empty icons > 3 empty icons + if (4 < totalSteps) throw new Error('StepperProgress: not enough icons to cover total steps') const stepIndicatorFirstPart: Array = Array.from({length: currentStep}).map((_, index) => { if (index <= currentStep - 2) return