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')}
|
{t('referral.withdrawal.requestButton')}
|
||||||
</button>
|
</button>
|
||||||
{!withdrawalBalance.can_request && withdrawalBalance.cannot_request_reason && (
|
{!withdrawalBalance.can_request && withdrawalBalance.cannot_request_reason ? (
|
||||||
<p className="mt-2 text-xs text-dark-500">
|
<p className="mt-2 text-xs text-dark-500">
|
||||||
{withdrawalBalance.cannot_request_reason}
|
{withdrawalBalance.cannot_request_reason}
|
||||||
</p>
|
</p>
|
||||||
)}
|
) : (
|
||||||
{withdrawalBalance.min_amount_kopeks > 0 && (
|
withdrawalBalance.min_amount_kopeks > 0 && (
|
||||||
<p className="mt-2 text-xs text-dark-500">
|
<p className="mt-2 text-xs text-dark-500">
|
||||||
{t('referral.withdrawal.minAmount', {
|
{t('referral.withdrawal.minAmount', {
|
||||||
amount: formatWithCurrency(withdrawalBalance.min_amount_kopeks / 100),
|
amount: formatWithCurrency(withdrawalBalance.min_amount_kopeks / 100),
|
||||||
})}
|
})}
|
||||||
</p>
|
</p>
|
||||||
|
)
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user