Skip to content

Commit

Permalink
Shontzu/cfds 1176/wrong content for dxtrade password regression (#10934)
Browse files Browse the repository at this point in the history
* fix: fixed typo causing misleading description

* chore: password modal label for dxtrade (CFD -> Real)
  • Loading branch information
shontzu-deriv authored and Bahar committed Oct 25, 2023
1 parent fced949 commit 5683da9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/cfd/src/Containers/cfd-password-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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(),
}}
/>
Expand All @@ -542,7 +545,7 @@ const CFDPasswordForm = ({
values={{
platform: getCFDPlatformLabel(platform),
platform_name: getCFDPlatformNames(platform),
account: accountTitle(),
account: accountTitle(account_type.category),
}}
/>
)}
Expand Down

0 comments on commit 5683da9

Please sign in to comment.