diff --git a/src/javascript/app/pages/user/account/settings/account_closure.js b/src/javascript/app/pages/user/account/settings/account_closure.js index 430e93d5b9a0c..b5877b0c177dd 100644 --- a/src/javascript/app/pages/user/account/settings/account_closure.js +++ b/src/javascript/app/pages/user/account/settings/account_closure.js @@ -221,7 +221,7 @@ const AccountClosure = (() => { }; if (response.error.details.open_positions) { Object.keys(response.error.details.open_positions).forEach((account) => { - const txt_positions = `${response.error.details.open_positions[account]} position(s)`; + const txt_positions = `${response.error.details.open_positions[account]} ${localize('position(s)')}`; if (/^MT/.test(account)) { section_id = 'account_closure_open_mt'; display_name = getMTDisplay(account); @@ -245,6 +245,13 @@ const AccountClosure = (() => { addSection(account, txt_balance); }); } + if (response.error.details.pending_withdrawals) { + Object.keys(response.error.details.pending_withdrawals).forEach((account) => { + const txt_pending_withdrawals = `${response.error.details.pending_withdrawals[account]} ${localize('withdrawal(s)')}`; + section_id = 'account_closure_pending_withdrawals'; + addSection(account, txt_pending_withdrawals); + }); + } }; const showFormMessage = (localized_msg) => { diff --git a/src/templates/app/user/security/account_closure.jsx b/src/templates/app/user/security/account_closure.jsx index ea6db871b5f06..8f4c52d411798 100644 --- a/src/templates/app/user/security/account_closure.jsx +++ b/src/templates/app/user/security/account_closure.jsx @@ -51,6 +51,9 @@ const AccountClosureError = () => (
{it.L('You have funds in these MT5 accounts:')}
+
+ {it.L('You have pending withdrawal(s) in these Binary accounts:')} +