From 98ab1099b9f9b639221b431205bd7eb9e8432d34 Mon Sep 17 00:00:00 2001 From: Fringg Date: Wed, 18 Feb 2026 09:18:40 +0300 Subject: [PATCH] fix: remove duplicate min withdrawal amount on referral page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show cannot_request_reason OR minAmount hint, not both — the reason already includes the minimum amount info. --- src/pages/Referral.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/pages/Referral.tsx b/src/pages/Referral.tsx index 52a6523..19aa308 100644 --- a/src/pages/Referral.tsx +++ b/src/pages/Referral.tsx @@ -692,17 +692,18 @@ export default function Referral() { > {t('referral.withdrawal.requestButton')} - {!withdrawalBalance.can_request && withdrawalBalance.cannot_request_reason && ( + {!withdrawalBalance.can_request && withdrawalBalance.cannot_request_reason ? (

{withdrawalBalance.cannot_request_reason}

- )} - {withdrawalBalance.min_amount_kopeks > 0 && ( -

- {t('referral.withdrawal.minAmount', { - amount: formatWithCurrency(withdrawalBalance.min_amount_kopeks / 100), - })} -

+ ) : ( + withdrawalBalance.min_amount_kopeks > 0 && ( +

+ {t('referral.withdrawal.minAmount', { + amount: formatWithCurrency(withdrawalBalance.min_amount_kopeks / 100), + })} +

+ ) )}