Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
spalmurray-codecov committed Jan 31, 2025
1 parent 8879e3e commit f4e7b2d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/pages/TermsOfService/TermsOfService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,12 @@ export default function TermsOfService() {
if (data?.saveTermsAgreement?.error) {
setError('apiError', data?.saveTermsAgreement?.error)
console.error('validation error')
return
}

const url = new URL(window.location.href)
url.searchParams.set('source', ONBOARDING_SOURCE)
window.location.href = url.toString()
},
onError: (error) => setError('apiError', error),
})
Expand All @@ -159,10 +164,6 @@ export default function TermsOfService() {
name: data.marketingName,
termsAgreement: true,
})

const url = new URL(window.location.href)
url.searchParams.set('source', ONBOARDING_SOURCE)
window.location.href = url.toString()
}

useEffect(() => {
Expand Down

0 comments on commit f4e7b2d

Please sign in to comment.