@mx-cartographer/experiences 3.8.0-alpha.al5 → 3.8.0-alpha.al7

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.es.js CHANGED
@@ -9631,7 +9631,7 @@ class Ta {
9631
9631
  }
9632
9632
  getAccounts = async () => this.fetchInstance.get(M.ACCOUNTS).then((e) => e.accounts).catch((e) => e);
9633
9633
  getMembers = async () => this.fetchInstance.get(M.MEMBERS).then((e) => e.members).catch((e) => e);
9634
- getMonthlyAccountBalances = async (e) => this.fetchInstance.get(`${M.ACCOUNTS}/${e}/monthly_account_balances`).then((n) => (console.log(n), n.monthly_account_balances)).catch((n) => n);
9634
+ getMonthlyAccountBalances = async (e) => this.fetchInstance.get(`${M.ACCOUNTS}/${e}/monthly_account_balances`).then((n) => n).catch((n) => n);
9635
9635
  }
9636
9636
  const Wu = (A, e) => e.filter((n) => {
9637
9637
  const { is_closed: r, is_deleted: a, is_hidden: i, is_manual: o } = n;
@@ -9652,7 +9652,9 @@ class Yu {
9652
9652
  /*eslint-disable no-console*/
9653
9653
  loadNetWorthData = async () => {
9654
9654
  try {
9655
- const e = Wu(await this.api.getMembers(), await this.api.getAccounts()), n = e.map((i) => this.api.getMonthlyAccountBalances(i.guid)), a = await (await Promise.all(n)).reduce(this._flattenBalances, []);
9655
+ const e = Wu(await this.api.getMembers(), await this.api.getAccounts()), n = e.map((i) => this.api.getMonthlyAccountBalances(i.guid)), r = await Promise.all(n);
9656
+ console.log(r);
9657
+ const a = await r.reduce(this._flattenBalances, []);
9656
9658
  Z(() => {
9657
9659
  this.netWorthData = {
9658
9660
  accounts: e,
@@ -9665,10 +9667,7 @@ class Yu {
9665
9667
  console.error(`Error occured while loading net worth data: ${e}`);
9666
9668
  }
9667
9669
  };
9668
- _flattenBalances = (e, n) => [
9669
- ...e,
9670
- n
9671
- ];
9670
+ _flattenBalances = (e, n) => (console.log(n), [...e, n]);
9672
9671
  }
9673
9672
  class HC {
9674
9673
  accountStore;