fix(payment): update currency display from تومان to ریال and adjust amount formatting

This commit is contained in:
hamed
2026-06-24 20:39:34 +03:30
parent cc6b42c1a5
commit 537f3e47d5
5 changed files with 16 additions and 13 deletions
+2 -2
View File
@@ -101,7 +101,7 @@ export default function PaymentDetailsPage() {
};
const formatAmount = (rials) => {
return new Intl.NumberFormat("fa-IR").format(Math.round(parseInt(rials) / 10));
return new Intl.NumberFormat("fa-IR").format(parseInt(rials));
};
if (loading) {
@@ -158,7 +158,7 @@ export default function PaymentDetailsPage() {
<div className="flex justify-between items-center py-3 border-b border-gray-100">
<span className="text-[#616161] font-medium">مبلغ:</span>
<span className="text-[#3B3B3B] font-bold text-lg">
{formatAmount(payment.amount_rials)} تومان
{formatAmount(payment.amount_rials)} ریال
</span>
</div>