Skip to content

Instantly share code, notes, and snippets.

# SectionAttempt.js
<CompleteSectionModal
onConfirm={ () => completeSectionAttempt()
.then(() => isLastSectionAttempt
? push(`${ STUDENT_PORTAL_ROUTE }/test-taking/complete-test-confirmation`)
: push(`${ STUDENT_PORTAL_ROUTE }/test-taking/complete-section-confirmation`)
)}
/>
# CompleteSectionModal.js