You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
Maryia/Allowing currency change if client has no real dmt5/dxtrade accounts (#7048)
* Maryia/fixed check for real dmt5/dxtrade accounts
* Maryia/fixed logical expressions
* Maryia/shortened condition
* Maryia/passing dxtrade accounts to canChangeCurrency everywhere it's used
* Maryia/checking if client has no real mt5/derivX accounts in cashier
* Maryia/refactoring
* Maryia/optimized conditions and updated messages text
* Maryia/updated note text on accounts page
* Maryia/removed unnecessary function & updated comments
* Maryia/aligned an assignment sign
* Maryia/changed content as agreed
* Maryia/passed a missing loginid param to canChangeCurrency()
* Maryia/refactoring
* Maryia/showing popup only if a user able to change currency is creating a real account
Co-authored-by: Kevin <70131533+kevinw-binary@users.noreply.github.com>
? localize('You can no longer change the currency because you\'ve created a real MT5 account (or a real Deriv X account at deriv.com).')+account_action_text
105
+
: localize('You can no longer change the currency because you\'ve made a first-time deposit.')+account_action_text;
109
106
110
107
// Set messages based on currency being crypto or fiat
111
108
// If fiat, set message based on if they're allowed to change currency or not
112
-
// Condition is to have no MT5 accounts *and* have no transactions
? localize('You can [_1]set a new currency[_2] before you deposit for the first [_3].',[can_change ? url_user_account : '',can_change ? '</a>' : '',change_text_for_iom])
? localize('Don\'t want to trade in [_1]? You can open another cryptocurrency account.',`${Currency.getCurrencyDisplayCode(currency)}`)+account_action_text
121
-
: has_no_mt5&&has_no_transaction
122
-
? localize('You can [_1]set a new currency[_2] before you deposit for the first [_3].',[can_change ? url_user_account : '',can_change ? '</a>' : '',change_text_for_iom])
// Replace note to reflect ability to change currency
163
-
$('#note > .hint').text(`${localize('Note: You are limited to one fiat currency account. The currency of your fiat account can be changed before you deposit into your fiat account for the first time or create an MT5 account. You may also open one account for each supported cryptocurrency.')}`);
169
+
$('#note > .hint').text(`${localize('Note: You are limited to one fiat currency account. The currency of your fiat account can be changed before you deposit into your fiat account for the first time or create a real MT5 account (or a real Deriv X account at deriv.com). You may also open one account for each supported cryptocurrency.')}`);
0 commit comments