diff --git a/src/pages/regulatory/_document_accordion.tsx b/src/pages/regulatory/_document_accordion.tsx index 47ceb9b1037..a0aa8075dbe 100644 --- a/src/pages/regulatory/_document_accordion.tsx +++ b/src/pages/regulatory/_document_accordion.tsx @@ -150,7 +150,7 @@ const DocumentAccordion = (locale: DocumentAccordionProps) => { target="_blank" rel="noopener noreferrer" href={`/regulatory/kid/${ - is_supported_language(selected_language) + is_supported_language(selected_language) && !data.is_only_en ? selected_language + '/' : '' }${data.ref}`} @@ -174,7 +174,7 @@ const DocumentAccordion = (locale: DocumentAccordionProps) => { target="_blank" rel="noopener noreferrer" href={`/regulatory/kid/${ - is_supported_language(selected_language) + is_supported_language(selected_language) && !data.is_only_en ? selected_language + '/' : '' }${data.ref}`} diff --git a/src/pages/regulatory/data/_kid_data.tsx b/src/pages/regulatory/data/_kid_data.tsx index d89016dd1a9..9cf92623ff9 100644 --- a/src/pages/regulatory/data/_kid_data.tsx +++ b/src/pages/regulatory/data/_kid_data.tsx @@ -3,6 +3,7 @@ import { TString } from 'types/generics' type kidType = { title: TString ref: string + is_only_en?: boolean } const kid_data: kidType[] = [ @@ -30,15 +31,18 @@ const kid_data: kidType[] = [ { title: '_t_CFDs - Synthetics: Volatility 250 (1s) Index_t_', ref: 'kid_deriv_CFD_synthetic_vol_250.pdf', + is_only_en: true, }, { title: '_t_CFDs - Synthetics: Crash 300 Index_t_', ref: 'kid_deriv_CFD_synthetic_crash_300.pdf', + is_only_en: true, }, { title: '_t_CFDs - ETFs_t_', ref: 'kid_deriv_cfds_etfs.pdf', + is_only_en: true, }, ] const kid_data_multiplier = [ @@ -53,10 +57,12 @@ const kid_data_multiplier = [ { title: '_t_Multipliers - Synthetics: Volatility 250 (1s) Index_t_', ref: 'kid_deriv_multipliers_synthetics_vol_250.pdf', + is_only_en: true, }, { title: '_t_Multipliers - Synthetics: Crash 300 Index_t_', ref: 'kid_deriv_multipliers_synthetics_crash_300.pdf', + is_only_en: true, }, ]