Skip to content

Commit aeac5a9

Browse files
committed
fix(prepayment-webflow): display inventory field searchd in the log error message
1 parent 7100e22 commit aeac5a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions/pre-payment-webhook-webflow/pre-payment-webhook-webflow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ function sufficientInventory(comparable) {
301301
}
302302
if (inventoryField === undefined) {
303303
// The Webflow collection does not have the proper inventory field: ignore
304-
console.log(`Warning: the inventory field (${inventoryField}) does not exist in this webflow collection. Skipping inventory check.`);
304+
console.log(`Warning: the inventory field (${field}) does not exist in this webflow collection. Skipping inventory check.`);
305305
console.debug(`Available fields: `, Object.keys(wfItem));
306306
return true;
307307
}

0 commit comments

Comments
 (0)