@mx-cartographer/experiences 6.2.2 → 6.2.3-alpha.al0

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
@@ -14486,7 +14486,7 @@ class o1 {
14486
14486
  });
14487
14487
  };
14488
14488
  updateUser = async (n) => {
14489
- this.globalStore.userStore.updateUser(n).then(() => {
14489
+ console.log("updated user birthday is ", n.birthday), this.globalStore.userStore.updateUser(n).then(() => {
14490
14490
  this.setAlert(this.copy.information_updated_success, "success");
14491
14491
  }).catch(() => {
14492
14492
  this.setAlert(this.copy.information_updated_error, "error");
@@ -17893,14 +17893,20 @@ const l1 = ({
17893
17893
  )
17894
17894
  ] });
17895
17895
  }), Y1 = () => {
17896
- const e = at(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = De(), { config: c } = Ca(), { updateUser: d } = Ht(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [y, T] = g.useState(_.phone), [w, N] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D, $] = g.useState(Me(_.birthday ?? 0)), O = f && !_.email_is_verified, L = y && !_.phone_is_verified, U = async () => {
17896
+ const e = at(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = De(), { config: c } = Ca(), { updateUser: d } = Ht(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [y, T] = g.useState(_.phone), [w, N] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D, $] = g.useState(Me(_.birthday ?? 0)), O = f && !_.email_is_verified, L = y && !_.phone_is_verified;
17897
+ g.useEffect(() => {
17898
+ console.log("user birthday at first is ", _.birthday);
17899
+ }, [_]), g.useEffect(() => {
17900
+ console.log("birthday changed, is ", D);
17901
+ }, [D]);
17902
+ const U = async () => {
17897
17903
  const H = {
17898
17904
  ..._,
17899
17905
  first_name: u,
17900
17906
  last_name: m,
17901
17907
  email: f,
17902
17908
  phone: y,
17903
- birthday: D ? Oe(D) : null,
17909
+ birthday: D && Oe(D),
17904
17910
  postal_code: w,
17905
17911
  credit_score: x
17906
17912
  };