mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
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:
@@ -618,7 +618,7 @@
|
||||
"requestError": "ایجاد درخواست برداشت ناموفق بود. لطفاً دوباره تلاش کنید.",
|
||||
"fields": {
|
||||
"amount": "مبلغ",
|
||||
"amountPlaceholder": "مبلغ را وارد کنید",
|
||||
"amountPlaceholder": "مبلغ را به {{currency}} وارد کنید",
|
||||
"amountHint": "حداقل: {{min}} {{currency}}",
|
||||
"paymentDetails": "اطلاعات پرداخت",
|
||||
"paymentDetailsPlaceholder": "شماره کارت، آدرس کیف پول یا سایر اطلاعات پرداخت..."
|
||||
|
||||
@@ -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 */}
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user