From 5683da9cb8968f466095d7e9fe73b1bbe0c8469b Mon Sep 17 00:00:00 2001 From: shontzu <108507236+shontzu-deriv@users.noreply.github.com> Date: Wed, 25 Oct 2023 12:43:17 +0800 Subject: [PATCH] Shontzu/cfds 1176/wrong content for dxtrade password regression (#10934) * fix: fixed typo causing misleading description * chore: password modal label for dxtrade (CFD -> Real) --- packages/cfd/src/Containers/cfd-password-modal.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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), }} /> )}