Skip to content

Commit 10a45d1

Browse files
Whoops! Should have looked closer when copy-pasting over the impl.
Fixed issue where I was trying to access a undeclared variable. I am now accessing the details field of the listing object as intended.
1 parent 438009b commit 10a45d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bptf-autopricer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,10 @@ const insertListings = async (unformattedListings, sku, name) => {
390390

391391
for (const listing of unformattedListings) {
392392
if (
393-
listingDetails &&
393+
listing.details &&
394394
excludedListingDescriptions.some(detail =>
395395
new RegExp(`\\b${detail}\\b`, 'i').test(
396-
listingDetails.normalize('NFKD').toLowerCase().trim()
396+
listing.details.normalize('NFKD').toLowerCase().trim()
397397
)
398398
)
399399
) {

0 commit comments

Comments
 (0)