Skip to content

Commit

Permalink
fix: the Save and Return link should only show after the Review step …
Browse files Browse the repository at this point in the history
…has been reached (#3901)
  • Loading branch information
jaredcwhite authored Feb 29, 2024
1 parent c5bc517 commit 16772d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sites/public/src/lib/applications/ApplicationConductor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export default class ApplicationConductor {
}

canJumpForwardToReview() {
return this.application.completedSections === this.totalNumberOfSections - 1
return this.application.reachedReviewStep
}

sync() {
Expand Down
5 changes: 5 additions & 0 deletions sites/public/src/pages/applications/review/summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ const ApplicationSummary = () => {
}
}, [listing, router])

useEffect(() => {
conductor.application.reachedReviewStep = true
conductor.sync()
}, [conductor])

const onSubmit = () => {
applicationsService
.submissionValidation({
Expand Down

0 comments on commit 16772d9

Please sign in to comment.