From 6696294b2c46d014779799187eb85bd3de150ebc Mon Sep 17 00:00:00 2001 From: Aum Bhatt Date: Fri, 3 May 2024 17:39:20 +0400 Subject: [PATCH] fix: fixed the MT5 account creation flow and the showing of the correct shortcode in success screen --- .../cfd/screens/CompareAccounts/CompareAccountsButton.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/wallets/src/features/cfd/screens/CompareAccounts/CompareAccountsButton.tsx b/packages/wallets/src/features/cfd/screens/CompareAccounts/CompareAccountsButton.tsx index f190007b0f47..fc3745f06a53 100644 --- a/packages/wallets/src/features/cfd/screens/CompareAccounts/CompareAccountsButton.tsx +++ b/packages/wallets/src/features/cfd/screens/CompareAccounts/CompareAccountsButton.tsx @@ -37,7 +37,7 @@ type TCompareAccountButton = { const CompareAccountsButton = ({ isAccountAdded, marketType, platform, shortCode }: TCompareAccountButton) => { const history = useHistory(); - const { show } = useModal(); + const { setModalState, show } = useModal(); const switchWalletAccount = useWalletAccountSwitcher(); const { data: accountSettings } = useSettings(); @@ -122,6 +122,8 @@ const CompareAccountsButton = ({ isAccountAdded, marketType, platform, shortCode }); } if (platform === CFD_PLATFORMS.MT5) { + setModalState('marketType', marketType); + setModalState('selectedJurisdiction', shortCode); if (isAccountStatusVerified) { show(); } else {