mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
fix: remove duplicate min withdrawal amount on referral page
Show cannot_request_reason OR minAmount hint, not both — the reason already includes the minimum amount info.
This commit is contained in:
@@ -692,17 +692,18 @@ export default function Referral() {
|
||||
>
|
||||
{t('referral.withdrawal.requestButton')}
|
||||
</button>
|
||||
{!withdrawalBalance.can_request && withdrawalBalance.cannot_request_reason && (
|
||||
{!withdrawalBalance.can_request && withdrawalBalance.cannot_request_reason ? (
|
||||
<p className="mt-2 text-xs text-dark-500">
|
||||
{withdrawalBalance.cannot_request_reason}
|
||||
</p>
|
||||
)}
|
||||
{withdrawalBalance.min_amount_kopeks > 0 && (
|
||||
<p className="mt-2 text-xs text-dark-500">
|
||||
{t('referral.withdrawal.minAmount', {
|
||||
amount: formatWithCurrency(withdrawalBalance.min_amount_kopeks / 100),
|
||||
})}
|
||||
</p>
|
||||
) : (
|
||||
withdrawalBalance.min_amount_kopeks > 0 && (
|
||||
<p className="mt-2 text-xs text-dark-500">
|
||||
{t('referral.withdrawal.minAmount', {
|
||||
amount: formatWithCurrency(withdrawalBalance.min_amount_kopeks / 100),
|
||||
})}
|
||||
</p>
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user