Skip to content

Commit

Permalink
refactor: ⚡ renames BE flag name for hint text
Browse files Browse the repository at this point in the history
  • Loading branch information
shaheer-deriv committed Sep 1, 2023
1 parent 09cda1d commit 866b4d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ describe('<AccountTransferForm />', () => {
currency: 'USD',
display_balance: '1233.00',
login: 'TEST_LOGIN_ID',
open_position_status: true,
open_order_position_status: true,
},
];
mockRootStore.modules.cashier.account_transfer.selected_to.value = 'TEST_LOGIN_ID';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ const AccountTransferForm = observer(
};

let hint_text;
// flag 'open_position_status' does not exist in mt5_login_list, @deriv/api-types yet
if (mt5_login_list.find(account => account?.login === selected_to.value)?.open_position_status) {
// flag 'open_order_position_status' does not exist in mt5_login_list, @deriv/api-types yet
if (mt5_login_list.find(account => account?.login === selected_to.value)?.open_order_position_status) {
hint_text = <Localize i18n_default_text='You can no longer open new positions with this account.' />;
} else {
remaining_transfers = getRemainingTransfers() ?? 0;
Expand Down

0 comments on commit 866b4d4

Please sign in to comment.