fix: correct formatCentsToCurrency usage in kijiji scraper

This commit is contained in:
2026-01-23 14:46:47 -05:00
parent 65eb8d1724
commit 2f97d3eafd

View File

@@ -494,7 +494,7 @@ function _parseListing(
const cents = price?.amount != null ? Number(price.amount) : undefined;
const amountFormatted =
cents != null ? formatCentsToCurrency(cents / 100, "en-CA") : undefined;
cents != null ? formatCentsToCurrency(cents, "en-CA") : undefined;
const numberOfViews =
metrics?.views != null ? Number(metrics.views) : undefined;
@@ -573,7 +573,7 @@ export async function parseDetailedListing(
const cents = price?.amount != null ? Number(price.amount) : undefined;
const amountFormatted =
cents != null ? formatCentsToCurrency(cents / 100, "en-CA") : undefined;
cents != null ? formatCentsToCurrency(cents, "en-CA") : undefined;
const numberOfViews =
metrics?.views != null ? Number(metrics.views) : undefined;