Skip to content

Commit

Permalink
yauheni/9321/self exclusion validation max balance max open positions…
Browse files Browse the repository at this point in the history
… for cr clients (binary-com#6677)

* 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”>
  • Loading branch information
2 people authored and adrienne-deriv committed Nov 17, 2022
1 parent c2afb5a commit 922bea0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,12 @@ const AccountLimits = ({
<Localize i18n_default_text='*Maximum account cash balance' />
</AccountLimitsTableCell>
<AccountLimitsTableCell align='right'>
{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)
) : (
<Localize i18n_default_text='Not set' />
)}
</AccountLimitsTableCell>
</tr>
<tr>
Expand Down

0 comments on commit 922bea0

Please sign in to comment.