Skip to content

Commit 8694d6e

Browse files
committed
Added info about registration pages numeration
1 parent e47b5de commit 8694d6e

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

frontend/src/pages/_events/slug/register/RegistrationBottomBar/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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}

frontend/src/pages/_events/slug/register/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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}

0 commit comments

Comments
 (0)