File tree Expand file tree Collapse file tree
frontend/src/pages/_events/slug/register Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,9 +82,11 @@ const RegistrationBottomBar = ({
8282 </ Button >
8383 ) }
8484 < Box className = { classes . right } >
85- < Typography className = { classes . sectionsNum } >
86- { `${ sectionsInfo . index } /${ sectionsInfo . sections } ` }
87- </ Typography >
85+ { sectionsInfo && (
86+ < Typography className = { classes . sectionsNum } >
87+ { `${ sectionsInfo . activeSection } /${ sectionsInfo . sections } ` }
88+ </ Typography >
89+ ) }
8890 < ErrorDisplay errors = { errors } />
8991 < Button
9092 className = { classes . nextButton }
Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ export default RequiresPermission(() => {
334334 data = { formData }
335335 sectionsInfo = { {
336336 sections : sections . length ,
337- index : index + 1 ,
337+ activeSection : index + 1 ,
338338 } }
339339 onPrev = { setPrevStep }
340340 prevLabel = { prevStep ? prevStep . label : null }
@@ -349,7 +349,7 @@ export default RequiresPermission(() => {
349349 data = { formData }
350350 sectionsInfo = { {
351351 sections : sections . length ,
352- index : index + 1 ,
352+ activeSection : index + 1 ,
353353 } }
354354 label = { section . label }
355355 fields = { section . fields }
You can’t perform that action at this time.
0 commit comments