File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed
Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -120,9 +120,7 @@ function isObject(val) {
120120 totalValue ,
121121 params = cloneEventAttributes ( event ) ;
122122
123- if ( event . CurrencyCode ) {
124- params [ 'currency' ] = event . CurrencyCode ;
125- }
123+ params [ 'currency' ] = event . CurrencyCode || 'USD' ;
126124
127125 if ( event . EventName ) {
128126 params [ 'content_name' ] = event . EventName ;
Original file line number Diff line number Diff line change @@ -10,16 +10,6 @@ var mpFacebookKit = (function (exports) {
1010 return val != null && typeof val === 'object' && Array . isArray ( val ) === false ;
1111 }
1212
13- var isobject = /*#__PURE__*/ Object . freeze ( {
14- 'default' : isObject
15- } ) ;
16-
17- function getCjsExportFromNamespace ( n ) {
18- return n && n [ 'default' ] || n ;
19- }
20-
21- var isobject$1 = getCjsExportFromNamespace ( isobject ) ;
22-
2313 /* eslint-disable no-undef */
2414 // Copyright 2015 mParticle, Inc.
2515 //
@@ -129,9 +119,7 @@ var mpFacebookKit = (function (exports) {
129119 totalValue ,
130120 params = cloneEventAttributes ( event ) ;
131121
132- if ( event . CurrencyCode ) {
133- params [ 'currency' ] = event . CurrencyCode ;
134- }
122+ params [ 'currency' ] = event . CurrencyCode || 'USD' ;
135123
136124 if ( event . EventName ) {
137125 params [ 'content_name' ] = event . EventName ;
@@ -306,12 +294,12 @@ var mpFacebookKit = (function (exports) {
306294 return ;
307295 }
308296
309- if ( ! isobject$1 ( config ) ) {
297+ if ( ! isObject ( config ) ) {
310298 window . console . log ( '\'config\' must be an object. You passed in a ' + typeof config ) ;
311299 return ;
312300 }
313301
314- if ( isobject$1 ( config . kits ) ) {
302+ if ( isObject ( config . kits ) ) {
315303 config . kits [ name ] = {
316304 constructor : constructor
317305 } ;
You can’t perform that action at this time.
0 commit comments