fix(payment): update currency display from تومان to ریال and adjust amount formatting
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user