diff --git a/packages/cfd/src/Containers/cfd-password-modal.tsx b/packages/cfd/src/Containers/cfd-password-modal.tsx index a9afcf2d1dfe..7a00941ae792 100644 --- a/packages/cfd/src/Containers/cfd-password-modal.tsx +++ b/packages/cfd/src/Containers/cfd-password-modal.tsx @@ -481,12 +481,13 @@ const CFDPasswordForm = ({ ); } - const accountTitle = () => { + const accountTitle = (category: string) => { switch (platform) { case 'ctrader': case 'derivez': - case 'dxtrade': return 'CFD'; + case 'dxtrade': + return category === 'real' ? 'Real' : ''; default: return account_title; } @@ -531,7 +532,9 @@ const CFDPasswordForm = ({ values={{ platform: getCFDPlatformLabel(platform), platform_name: getCFDPlatformNames(platform), - account: !show_eu_related_content ? accountTitle() : '', + account: !show_eu_related_content + ? accountTitle(account_type.category) + : '', jurisdiction_shortcode: showJuristiction(), }} /> @@ -542,7 +545,7 @@ const CFDPasswordForm = ({ values={{ platform: getCFDPlatformLabel(platform), platform_name: getCFDPlatformNames(platform), - account: accountTitle(), + account: accountTitle(account_type.category), }} /> )}