Skip to content

Commit

Permalink
fix: EU flow platform label change
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-deriv committed Jun 30, 2023
1 parent c0f2ddd commit d6c0d86
Showing 1 changed file with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,10 @@ import React from 'react';
import classNames from 'classnames';
import { Text } from '@deriv/components';
import { TCompareAccountsCard } from 'Components/props.types';
import {
getPlatformLabel,
getHeaderColor,
getMarketType,
platfromsHeaderLabel,
} from '../../Helpers/compare-accounts-config';
import { getPlatformLabel, getHeaderColor, platfromsHeaderLabel } from '../../Helpers/compare-accounts-config';

const CFDCompareAccountsPlatformLabel = ({ trading_platforms, is_eu_user }: TCompareAccountsCard) => {
const market_type = getMarketType(trading_platforms);
const jurisdiction_shortcode = market_type.concat('_', trading_platforms.shortcode);

const platform_label =
!is_eu_user && jurisdiction_shortcode !== 'financial_maltainvest'
? getPlatformLabel(trading_platforms.platform)
: getPlatformLabel('CFDs');
const CFDCompareAccountsPlatformLabel = ({ trading_platforms }: TCompareAccountsCard) => {
const platform_label = getPlatformLabel(trading_platforms.platform);
const header_color = getHeaderColor(platform_label);

return (
Expand Down

0 comments on commit d6c0d86

Please sign in to comment.