From 9e429d993a22c950b0f9fd58200e8968c8de259a Mon Sep 17 00:00:00 2001 From: hasan-deriv Date: Thu, 12 Dec 2024 11:48:48 +0800 Subject: [PATCH] fix: compare accounts header --- .../cfd-compare-accounts.tsx | 24 ++++++------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/packages/cfd/src/Containers/cfd-compare-accounts/cfd-compare-accounts.tsx b/packages/cfd/src/Containers/cfd-compare-accounts/cfd-compare-accounts.tsx index 90ace019f07b..565d9e8491b2 100644 --- a/packages/cfd/src/Containers/cfd-compare-accounts/cfd-compare-accounts.tsx +++ b/packages/cfd/src/Containers/cfd-compare-accounts/cfd-compare-accounts.tsx @@ -17,7 +17,6 @@ import { dxtrade_data, ctrader_data, } from '../../Helpers/compare-accounts-config'; -import { REGION } from '../../Helpers/cfd-config'; const CompareCFDs = observer(() => { const { isDesktop } = useDevice(); @@ -26,8 +25,7 @@ const CompareCFDs = observer(() => { const store = useStore(); const { client, traders_hub } = store; const { trading_platform_available_accounts } = client; - const { is_demo, is_eu_user, available_dxtrade_accounts, selected_region, available_ctrader_accounts } = - traders_hub; + const { is_demo, is_eu_user, available_dxtrade_accounts, available_ctrader_accounts } = traders_hub; const sorted_available_accounts = !is_eu_user ? getSortedCFDAvailableAccounts(trading_platform_available_accounts) @@ -64,20 +62,12 @@ const CompareCFDs = observer(() => { ? all_cfd_available_accounts.length + 1 : all_cfd_available_accounts.length; - const getCompareAccountsHeader = () => - selected_region === REGION.EU ? ( - - ) : ( - - ); + const getCompareAccountsHeader = () => ( + + ); const DesktopHeader = (