Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into sshin/stripe-6
Browse files Browse the repository at this point in the history
  • Loading branch information
suejung-sentry committed Feb 3, 2025
2 parents 6b7f457 + 2a51004 commit 2fd8608
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 2fd8608

Please sign in to comment.