fix(webhook): remove incorrect /100 division from formatPrice
Some checks failed
Build and Deploy / build (push) Has been cancelled

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 d0e3ee3201
commit 9c2e4e1383

View File

@@ -209,7 +209,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 {