Skip to content

Commit 0f029f9

Browse files
committed
fix isobject casing
1 parent 575600f commit 0f029f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/FacebookEventForwarder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@
375375

376376
// Apply configured mappings to custom attributes
377377
productAttributeMapping.forEach(function(productMapping) {
378-
if (!isObject(productMapping) || !productMapping.map || !productMapping.value) {
378+
if (!isobject(productMapping) || !productMapping.map || !productMapping.value) {
379379
return;
380380
}
381381

test/tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ describe('Facebook Forwarder', function () {
860860
});
861861

862862
it('should build contents array with mapped attributes for Purchase events', function (done) {
863-
// Initialize with product attribute mapping (as JSON string)
863+
// Initialize with product attribute mapping
864864
mParticle.forwarder.init({
865865
pixelCode: 'test-pixel-code',
866866
"productAttributeMapping":"[{"jsmap":"3373707","map":"Name","maptype":"ProductAttributeSelector.Name","value":"custom_name"},{"jsmap":"93997959","map":"Brand","maptype":"ProductAttributeSelector.Name","value":"custom_brand"},{"jsmap":"106934601","map":"Price","maptype":"ProductAttributeSelector.Name","value":"custom_price"},{"jsmap":"50511102","map":"Category","maptype":"ProductAttributeSelector.Name","value":"custom_category"},{"jsmap":"94842723","map":"category","maptype":"ProductAttributeSelector.Name","value":"custom_attribute_category"}]"

0 commit comments

Comments
 (0)