File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import { legalNoticeContent } from '@/config/legal-notice-content';
1313import { renderLegalNoticeContent } from '@/utils/render-legal-notice-content' ;
1414import NewTabLabel from '@/components/new-tab-label/new-tab-label' ;
1515import { LOAD_ZD_BUTTON_TEST_ID } from '@/constants/test-ids' ;
16- import { REDIRECT_DELAY_MS } from '@/constants/zendesk-timing' ;
1716import { getStorageWithExpiry } from '@/utils/get-storage-with-expiry' ;
1817import { formatDateString } from '@/utils/set-storage-with-expiry' ;
1918import styles from './consent-form.module.css' ;
@@ -107,13 +106,10 @@ export default function ConsentForm({ onContinue }: ConsentFormProps) {
107106 skipBaseStyles
108107 className = { `${ styles . button } ${ styles . cancelButton } ` }
109108 onClick = { ( ) => {
110- // allow time for a pixel to fire before redirecting
111- setTimeout ( ( ) => {
112- window . location . href = new URL (
113- '/subscription-support' ,
114- MAIN_SITE_URL ,
115- ) . href ;
116- } , REDIRECT_DELAY_MS ) ;
109+ window . location . href = new URL (
110+ '/subscription-support' ,
111+ MAIN_SITE_URL ,
112+ ) . href ;
117113 } }
118114 />
119115 { renderContinueButton ( CONSENT_BUTTON_TEXT ) }
Original file line number Diff line number Diff line change @@ -18,11 +18,6 @@ export const OBSERVER_SETUP_DELAY_MS = 1500;
1818 */
1919export const DEFAULT_MAX_RETRIES = 5 ;
2020
21- /**
22- * Delay for redirect after pixel fire
23- */
24- export const REDIRECT_DELAY_MS = 500 ;
25-
2621/**
2722 * Delay after Zendesk render before marking as ready
2823 */
You can’t perform that action at this time.
0 commit comments