Skip to content

Commit

Permalink
[CFDS] shontzu/CFDS-4248/Add-product-filtering-for-swap-free-jurisdic…
Browse files Browse the repository at this point in the history
…tion-modal (binary-com#15734)

* fix: Add product filtering for swap free jurisdiction modal

* chore: added type

* chore: empty commit
  • Loading branch information
shontzu-deriv committed Jun 21, 2024
1 parent 4bbad6a commit ef97bae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ const JurisdictionModalContentWrapper = observer(({ openPasswordModal }: TJurisd
const swapfree_available_accounts = trading_platform_available_accounts.filter(
available_account =>
available_account.market_type === MARKET_TYPE.ALL &&
available_account.product === 'swap_free' &&
(show_eu_related_content
? available_account.shortcode === JURISDICTION.MALTA_INVEST
: available_account.shortcode !== JURISDICTION.MALTA_INVEST)
Expand Down
1 change: 1 addition & 0 deletions packages/stores/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ type TActiveAccount = TAccount & {
type TTradingPlatformAvailableAccount = {
market_type: 'financial' | 'gaming' | 'all';
name: string;
product?: string;
requirements: {
after_first_deposit: {
financial_assessment: string[];
Expand Down

0 comments on commit ef97bae

Please sign in to comment.