fix: review fixes - Math.round kopecks, fa locale, admin list commission

1. Add Math.round() to rubles→kopecks conversion (floating point safety)
2. Add missing {{currency}} template var in fa.json amountPlaceholder
3. Show desired_commission_percent in admin applications list
This commit is contained in:
Fringg
2026-02-27 04:08:15 +03:00
parent e94d81fe5a
commit 82987fd49a
3 changed files with 8 additions and 2 deletions

View File

@@ -618,7 +618,7 @@
"requestError": "ایجاد درخواست برداشت ناموفق بود. لطفاً دوباره تلاش کنید.",
"fields": {
"amount": "مبلغ",
"amountPlaceholder": "مبلغ را وارد کنید",
"amountPlaceholder": "مبلغ را به {{currency}} وارد کنید",
"amountHint": "حداقل: {{min}} {{currency}}",
"paymentDetails": "اطلاعات پرداخت",
"paymentDetailsPlaceholder": "شماره کارت، آدرس کیف پول یا سایر اطلاعات پرداخت..."

View File

@@ -242,6 +242,12 @@ export default function AdminPartners() {
{app.expected_monthly_referrals}
</div>
)}
{app.desired_commission_percent != null && (
<div>
{t('admin.partners.applicationFields.desiredCommission')}:{' '}
{app.desired_commission_percent}%
</div>
)}
</div>
{/* Actions */}

View File

@@ -42,7 +42,7 @@ export default function ReferralWithdrawalRequest() {
if (form.payment_details.length < 5) return;
if (form.amount_rubles <= 0) return;
withdrawMutation.mutate({
amount_kopeks: form.amount_rubles * 100,
amount_kopeks: Math.round(form.amount_rubles * 100),
payment_details: form.payment_details,
});
};