Commit 4f93f82d authored by v.mattfeld's avatar v.mattfeld
Browse files

fix: redirect under conditions

parent 05cbad7b
......@@ -38,9 +38,9 @@ const Form: FC<FormProps> = ({ pageNumber, uid, imageID, refetch, isCheck }) =>
const { isQuestionOne } = currentCheck
useEffect(() => {
// if (pageNumber > STUDY_SIZE)
// redirect to done after STUDY_SIZE submits
router.push(`/done?uid=${uid}`)
if (pageNumber > STUDY_SIZE)
// redirect to done after STUDY_SIZE submits
router.push(`/done?uid=${uid}`)
}, [pageNumber, router, uid])
useCallback(() => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment