Skip to content

Commit

Permalink
chore: remove Jurisdiction declaration for not jurisdiction_selected_…
Browse files Browse the repository at this point in the history
…shortcode
  • Loading branch information
suisin-deriv committed Mar 22, 2023
1 parent a53102d commit 10c47e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions packages/cfd/src/Components/cfd-account-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import classNames from 'classnames';
import React from 'react';
import { CSSTransition } from 'react-transition-group';
import { Icon, Money, Button, Text, DesktopWrapper, MobileWrapper, Popover } from '@deriv/components';
import { isMobile, mobileOSDetect, getCFDPlatformLabel, CFD_PLATFORMS, isDesktop, Jurisdiction } from '@deriv/shared';
import { isMobile, mobileOSDetect, getCFDPlatformLabel, CFD_PLATFORMS, isDesktop } from '@deriv/shared';
import { localize, Localize } from '@deriv/translations';
import { connect } from '../Stores/connect';
import RootStore from '../Stores/index';
Expand Down Expand Up @@ -545,9 +545,7 @@ const CFDAccountCardComponent = ({
<Localize
i18n_default_text={
acc.landing_company_short &&
![Jurisdiction.SVG, Jurisdiction.BVI].includes(
acc?.landing_company_short
)
!['svg', 'bvi'].includes(acc?.landing_company_short)
? acc.landing_company_short?.charAt(0).toUpperCase() +
acc.landing_company_short.slice(1)
: acc.landing_company_short?.toUpperCase()
Expand Down
2 changes: 1 addition & 1 deletion packages/cfd/src/Containers/cfd-password-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ const CFDPasswordModal = ({
show_eu_related_content,
}: TCFDPasswordModalProps) => {
const [is_password_modal_exited, setPasswordModalExited] = React.useState(true);
const is_bvi = landing_companies?.mt_financial_company?.financial_stp?.shortcode === Jurisdiction.BVI;
const is_bvi = landing_companies?.mt_financial_company?.financial_stp?.shortcode === 'bvi';
const has_mt5_account = Boolean(mt5_login_list?.length);
const should_set_trading_password =
Array.isArray(account_status?.status) &&
Expand Down

0 comments on commit 10c47e1

Please sign in to comment.