summaryrefslogtreecommitdiff
path: root/client/src/pages/Enrollment/DocumentScanner/DocumentScanner.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/pages/Enrollment/DocumentScanner/DocumentScanner.jsx')
-rw-r--r--client/src/pages/Enrollment/DocumentScanner/DocumentScanner.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/pages/Enrollment/DocumentScanner/DocumentScanner.jsx b/client/src/pages/Enrollment/DocumentScanner/DocumentScanner.jsx
index 4255ece..2a2a9b6 100644
--- a/client/src/pages/Enrollment/DocumentScanner/DocumentScanner.jsx
+++ b/client/src/pages/Enrollment/DocumentScanner/DocumentScanner.jsx
@@ -43,8 +43,8 @@ const DocumentScanner = ({ formData, setFormData }) => {
})
const handleNext = () => {
- if (activeStep === steps.length) {
- setFormData({ ...formData, documents })
+ if (activeStep === steps.length - 1) {
+ setFormData({ ...formData, documents: documents })
}
setActiveStep((prevActiveStep) => prevActiveStep + 1)
}