fix: correct formatCentsToCurrency usage in kijiji scraper
This commit is contained in:
1 parent
65eb8d1724
commit
2f97d3eafd
1 file changed
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user