From 922bea0cf3a2e269747654b74d54d87c3d762382 Mon Sep 17 00:00:00 2001 From: yauheni-kryzhyk-deriv <103182683+yauheni-kryzhyk-deriv@users.noreply.github.com> Date: Tue, 8 Nov 2022 09:41:26 +0300 Subject: [PATCH] yauheni/9321/self exclusion validation max balance max open positions for cr clients (#6677) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * yauheni/9321/self exclusion validation max balance max open positions for cr clients * changed to true/false handling instead of number greater then 0 * added explanation comment for account balance value Co-authored-by: “yauheni-kryzhyk-deriv” <“yauheni@deriv.me”> --- .../src/Components/account-limits/account-limits.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/account/src/Components/account-limits/account-limits.jsx b/packages/account/src/Components/account-limits/account-limits.jsx index 9f5b1f4bb2ed..e5917db83b93 100644 --- a/packages/account/src/Components/account-limits/account-limits.jsx +++ b/packages/account/src/Components/account-limits/account-limits.jsx @@ -156,7 +156,12 @@ const AccountLimits = ({ - {formatMoney(currency, account_balance, true)} + {/* null or 0 are expected form BE when max balance limit is not set */} + {account_balance ? ( + formatMoney(currency, account_balance, true) + ) : ( + + )}