Skip to content

Commit

Permalink
trade-modal-fix (#6090)
Browse files Browse the repository at this point in the history
  • Loading branch information
amina-deriv committed Aug 3, 2022
1 parent cada70a commit 331a385
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/cfd/src/Components/cfd-account-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,11 @@ const CFDAccountCardComponent = ({
<Button
onClick={() => {
const selected_account_data = existing_accounts_data?.find(
data => data.landing_company_short === acc.landing_company_short
data =>
data.landing_company_short === acc.landing_company_short &&
data.login === acc.login
);

onClickFund(selected_account_data as DetailsOfEachMT5Loginid);
}}
type='button'
Expand All @@ -532,8 +535,11 @@ const CFDAccountCardComponent = ({
type='button'
onClick={() => {
const selected_account_data = existing_accounts_data?.find(
data => data.landing_company_short === acc.landing_company_short
data =>
data.landing_company_short === acc.landing_company_short &&
data.login === acc.login
);

toggleMT5TradeModal();
setMT5TradeAccount(selected_account_data);
}}
Expand Down

1 comment on commit 331a385

@vercel
Copy link

@vercel vercel bot commented on 331a385 Aug 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-app – ./

deriv-app.vercel.app
binary.sx
deriv-app.binary.sx
deriv-app-git-master.binary.sx

Please sign in to comment.