@@ -78,7 +78,7 @@ type TPasswordModalHeaderProps = {
78
78
} ;
79
79
80
80
type TCFDPasswordFormReusedProps = {
81
- platform : typeof CFD_PLATFORMS [ keyof typeof CFD_PLATFORMS ] ;
81
+ platform : ( typeof CFD_PLATFORMS ) [ keyof typeof CFD_PLATFORMS ] ;
82
82
error_message : string ;
83
83
validatePassword : ( values : TCFDPasswordFormValues ) => FormikErrors < TCFDPasswordFormValues > ;
84
84
} ;
@@ -119,7 +119,7 @@ type TCFDPasswordFormProps = TCFDPasswordFormReusedProps & {
119
119
type TCFDPasswordModalProps = {
120
120
error_type ?: string ;
121
121
form_error ?: string ;
122
- platform : typeof CFD_PLATFORMS [ keyof typeof CFD_PLATFORMS ] ;
122
+ platform : ( typeof CFD_PLATFORMS ) [ keyof typeof CFD_PLATFORMS ] ;
123
123
} ;
124
124
125
125
const PasswordModalHeader = ( {
@@ -368,7 +368,10 @@ const CFDPasswordForm = observer(
368
368
const { isDesktop } = useDevice ( ) ;
369
369
const { jurisdiction_selected_shortcode } = useCfdStore ( ) ;
370
370
const [ checked , setChecked ] = React . useState ( false ) ;
371
- const need_tnc = jurisdiction_selected_shortcode !== 'svg' && account_type . category === CATEGORY . REAL ;
371
+ const need_tnc =
372
+ jurisdiction_selected_shortcode !== 'svg' &&
373
+ account_type . category === CATEGORY . REAL &&
374
+ platform === CFD_PLATFORMS . MT5 ;
372
375
373
376
const button_label = React . useMemo ( ( ) => {
374
377
if ( error_type === 'PasswordReset' ) {
@@ -486,7 +489,7 @@ const CFDPasswordForm = observer(
486
489
/>
487
490
</ Text >
488
491
) }
489
- { account_type . category === CATEGORY . REAL && (
492
+ { account_type . category === CATEGORY . REAL && platform === CFD_PLATFORMS . MT5 && (
490
493
< CfdPasswordModalTnc
491
494
className = 'cfd-password-modal-tnc--bottom'
492
495
platform = { platform }
0 commit comments