fix(webhook): remove incorrect /100 division from formatPrice

Saleor stores amounts as actual currency values (e.g., 5479 RSD),
not as cents (e.g., 547900). The formatPrice function was incorrectly
dividing by 100, causing prices like 5479 RSD to display as 55 RSD.
This commit is contained in:
Unchained
2026-03-25 19:50:39 +02:00
parent bf628f873f
commit aa7a0ed3c8

View File

@@ -201,7 +201,7 @@ function formatPrice(amount: number, currency: string): string {
return new Intl.NumberFormat("sr-RS", { return new Intl.NumberFormat("sr-RS", {
style: "currency", style: "currency",
currency: currency, currency: currency,
}).format(amount / 100); }).format(amount);
} }
function formatAddress(address?: SaleorAddress): string { function formatAddress(address?: SaleorAddress): string {