@jetshop/core 5.13.1 → 5.13.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,8 +30,11 @@ function useTracker() {
30
30
  if (typeof name !== 'string') {
31
31
  throw new Error('"name" is required');
32
32
  }
33
- if (!config.trackingAllowed)
33
+ // Please fix me
34
+ if (!config.trackingAllowed) {
35
+ payload === null || payload === void 0 ? void 0 : payload.callback();
34
36
  return null;
37
+ }
35
38
  const context = {
36
39
  trackerRegistry,
37
40
  list: locationState.current ? locationState.current.list : null,
@@ -1 +1 @@
1
- {"version":3,"file":"Analytics.js","sourceRoot":"","sources":["Analytics.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,eAAe,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAe3C,SAAS,SAAS,CAAC,KAAqB;IACtC,MAAM,KAAK,GAAG,UAAU,EAAE,CAAC;IAE3B,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,KAAK,CAAC,KAAK,EAAE;YACf,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SACpB;QAED,mBAAmB;QACnB,wEAAwE;QACxE,sEAAsE;QACtE,2EAA2E;QAC3E,2EAA2E;QAC3E,yEAAyE;QACzE,6DAA6D;QAE7D,2BAA2B;IAC7B,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,IAAI,CAAC,KAAK,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IAEjC,OAAO,KAAK,CAAC,QAAQ,CAAC;AACxB,CAAC;AAID,SAAS,UAAU;IACjB,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;IACjE,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,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