Skip to content

Commit

Permalink
thisyahlen/fix: filtering condition for eu demo (binary-com#14266)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisyahlen-deriv committed Mar 20, 2024
1 parent eb95584 commit e977ec2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/api-v2/src/hooks/useCFDCompareAccounts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ const useCFDCompareAccounts = (isEU?: boolean) => {

const demoAvailableAccounts = useMemo(() => {
if (!sortedMt5Accounts) return;
if (isEU) return sortedMt5Accounts.filter(account => account.shortcode === JURISDICTION.MALTAINVEST);
return sortedMt5Accounts.filter(account => account.shortcode === JURISDICTION.SVG);
}, [sortedMt5Accounts]);
}, [isEU, sortedMt5Accounts]);

const modifiedData = useMemo(() => {
return {
Expand Down

0 comments on commit e977ec2

Please sign in to comment.