Skip to content

Commit

Permalink
chore: add gold mt5 acc into compare acc table
Browse files Browse the repository at this point in the history
  • Loading branch information
heorhi-deriv committed Nov 27, 2024
1 parent 890b39a commit e60570c
Showing 1 changed file with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,17 @@ const CompareAccountsScreen = () => {
<CompareAccountsHeader isDemo={isDemo} isEuRegion={isEuRegion} isLoading={isEuRegionLoading} />
<div className='wallets-compare-accounts__card-list'>
<CompareAccountsCarousel isRtl={isRtl}>
{mt5Accounts
//@ts-expect-error needs backend type
?.filter(item => item.product !== 'gold')
.map((item, index) => (
<CompareAccountsCard
isDemo={isDemo}
isEuRegion={isEuRegion}
key={`compare-accounts-${item?.product}-${index}`}
marketType={item?.market_type}
platform={item?.platform}
product={item?.product}
shortCode={item?.shortcode}
/>
))}
{mt5Accounts?.map((item, index) => (
<CompareAccountsCard
isDemo={isDemo}
isEuRegion={isEuRegion}
key={`compare-accounts-${item?.product}-${index}`}
marketType={item?.market_type}
platform={item?.platform}
product={item?.product}
shortCode={item?.shortcode}
/>
))}
{/* Renders cTrader data */}
{mt5Accounts?.length && hasCTraderAccountAvailable && ctraderAccount && (
<CompareAccountsCard
Expand Down

0 comments on commit e60570c

Please sign in to comment.