Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
bretthayes committed Jul 21, 2022
1 parent cd32e56 commit a4e4401
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/HubSpotForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ const onFormReady = (form: HTMLFormElement): void => {
.reduce((key, string) => Object.assign(key, { [string.split('=')[0].trim()]: string.split('=')[1] }), {})
const { sourcegraphAnonymousUid, sourcegraphSourceUrl } = getAllCookies
const landingSource: string = sessionStorage.getItem('landingSource') || ''
const firstSourceURL: string = sourcegraphSourceUrl?.includes('redacted') || !sourcegraphSourceUrl ? landingSource : sourcegraphSourceUrl
const firstSourceURL: string =
sourcegraphSourceUrl?.includes('redacted') || !sourcegraphSourceUrl ? landingSource : sourcegraphSourceUrl

populateHiddenFormField('anonymous_user_id', sourcegraphAnonymousUid)
populateHiddenFormField('first_source_url', firstSourceURL)
Expand Down

0 comments on commit a4e4401

Please sign in to comment.