@mx-cartographer/experiences 6.2.0-alpha.al2 → 6.2.0-alpha.al3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -4036,12 +4036,12 @@ class ju {
4036
4036
  }
4037
4037
  loadSurvey = (n = !1) => {
4038
4038
  sd.getActiveMatchingSurveys((i) => {
4039
- if (console.log(i), i.length > 0) {
4040
- const a = i.find((r) => r.id === this.surveyId);
4041
- a && K(() => {
4042
- this.survey = a, this.currentQuestionIndex = 0, this.question = a.questions[0], this.response = null, this.responses = {};
4043
- });
4044
- }
4039
+ console.log(i), K(() => {
4040
+ if (i.length > 0) {
4041
+ const a = i.find((r) => r.id === this.surveyId);
4042
+ console.log(a), a && (this.survey = a, this.currentQuestionIndex = 0, this.question = a.questions[0], this.response = null, this.responses = {});
4043
+ }
4044
+ });
4045
4045
  }, n);
4046
4046
  };
4047
4047
  nextQuestion = () => {
@@ -21199,7 +21199,7 @@ const JC = () => {
21199
21199
  g.useEffect(() => {
21200
21200
  E && (console.log("loading Survey"), s());
21201
21201
  }, [E]), g.useEffect(() => {
21202
- console.log("survey loaded", h), e("survey shown", {
21202
+ console.log("survey loaded", h), console.log("survey id", i), e("survey shown", {
21203
21203
  $survey_id: i
21204
21204
  });
21205
21205
  }, [h]);