@mx-cartographer/experiences 5.2.6 → 5.2.7

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [5.2.7] - 04-02-2025
2
+
3
+ - **FIXED** - Transaction Rules | Incorrect alert when category changed
4
+
1
5
  ## [5.2.6] - 04-02-2025
2
6
 
3
7
  - **ADDED** - Insights and Recurring transaction flags to AppConfig
package/dist/index.es.js CHANGED
@@ -13990,7 +13990,12 @@ class al {
13990
13990
  console.error(`Error updating notification profile: ${i}`);
13991
13991
  }
13992
13992
  };
13993
- updateTransactionRule = async (t) => {
13993
+ updateRuleCategory = async (t) => {
13994
+ this.transactionApi.updateTransactionRule(t).then(() => {
13995
+ this.loadTransactionRules();
13996
+ });
13997
+ };
13998
+ updateRulePayee = async (t) => {
13994
13999
  this.transactionApi.updateTransactionRule(t).then(() => {
13995
14000
  this.setAlert(this.copy.edit_payee_success, "success"), this.loadTransactionRules();
13996
14001
  }).catch(() => {
@@ -17870,7 +17875,7 @@ const qv = ({
17870
17875
  ] }) });
17871
17876
  }
17872
17877
  ), Yv = g(() => {
17873
- const { settings: A } = X(), { categories: t } = qA(), { selectedRule: i, updateTransactionRule: n } = ze(), [r, o] = h.useState(!1), I = () => {
17878
+ const { settings: A } = X(), { categories: t } = qA(), { selectedRule: i, updateRuleCategory: n } = ze(), [r, o] = h.useState(!1), I = () => {
17874
17879
  o(!1);
17875
17880
  }, a = () => {
17876
17881
  o(!0);
@@ -17898,19 +17903,17 @@ const qv = ({
17898
17903
  )
17899
17904
  ] });
17900
17905
  }), Vv = g(() => {
17901
- const { common: A, settings: t } = X(), { selectedRule: i, updateTransactionRule: n } = ze(), r = uA(), [o, I] = h.useState(
17902
- i?.match_description ? i.match_description : ""
17903
- ), [a, c] = h.useState(!1), f = h.useRef(o), E = () => {
17904
- c(!0);
17906
+ const { common: A, settings: t } = X(), { selectedRule: i, updateRulePayee: n } = ze(), r = uA(), [o, I] = h.useState(!1), a = i?.description ? i.description : i?.match_description, [c, f] = h.useState(a || ""), E = () => {
17907
+ I(!0);
17905
17908
  }, d = async () => {
17906
- o !== f.current && i && (i.description = o, await n(i), c(!1));
17909
+ c !== a && i && (i.description = c, await n(i), I(!1));
17907
17910
  };
17908
17911
  return /* @__PURE__ */ s(h.Fragment, { children: [
17909
17912
  /* @__PURE__ */ e(
17910
17913
  Ar,
17911
17914
  {
17912
17915
  onClick: E,
17913
- primaryText: o,
17916
+ primaryText: a,
17914
17917
  secondaryText: t.payee
17915
17918
  }
17916
17919
  ),
@@ -17918,10 +17921,10 @@ const qv = ({
17918
17921
  XA,
17919
17922
  {
17920
17923
  copy: { title: t.edit_payee },
17921
- isOpen: a,
17922
- onClose: () => c(!1),
17924
+ isOpen: o,
17925
+ onClose: () => I(!1),
17923
17926
  onPrimaryAction: d,
17924
- onSecondaryAction: () => c(!1),
17927
+ onSecondaryAction: () => I(!1),
17925
17928
  primaryText: A.save_button,
17926
17929
  secondaryText: A.cancel_button,
17927
17930
  sx: {
@@ -17931,9 +17934,9 @@ const qv = ({
17931
17934
  children: /* @__PURE__ */ e(
17932
17935
  JA,
17933
17936
  {
17934
- onChange: (l) => I(l.target.value),
17937
+ onChange: (l) => f(l.target.value),
17935
17938
  sx: { width: 352 },
17936
- value: o
17939
+ value: c
17937
17940
  }
17938
17941
  )
17939
17942
  }