diff --git a/packages/appstore/src/components/modals/account-type-modal/account-type-modal.tsx b/packages/appstore/src/components/modals/account-type-modal/account-type-modal.tsx index cf3a99bfc425..bd10965f0c96 100644 --- a/packages/appstore/src/components/modals/account-type-modal/account-type-modal.tsx +++ b/packages/appstore/src/components/modals/account-type-modal/account-type-modal.tsx @@ -109,19 +109,21 @@ const MT5AccountTypeModal = () => { const is_swapfree_available = useHasSwapFreeAccount(); const set_account_type = () => { - switch (account_type_card) { - case 'Derived': + const localizedAccountType = localize(account_type_card); + + switch (localizedAccountType) { + case localize('Derived'): setAccountType({ category: 'real', type: 'synthetic' }); break; - case 'Swap-Free': - setAccountType({ category: 'real', type: 'all' }); + case localize('Financial'): + setAccountType({ category: 'real', type: 'financial' }); break; - case 'Financial': default: - setAccountType({ category: 'real', type: 'financial' }); + setAccountType({ category: 'real', type: 'all' }); break; } }; + return (