@mx-cartographer/experiences 7.10.3 → 7.10.4
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
|
@@ -294,17 +294,17 @@ class ne {
|
|
|
294
294
|
setIncomeInitialized = (t) => {
|
|
295
295
|
this.isIncomeInitialized = t;
|
|
296
296
|
};
|
|
297
|
-
calculateHealthScore = async () => {
|
|
297
|
+
calculateHealthScore = async (t = !0) => {
|
|
298
298
|
try {
|
|
299
|
-
const
|
|
300
|
-
let
|
|
301
|
-
await this.loadHealthScoreChangeReports();
|
|
302
|
-
const
|
|
303
|
-
|
|
304
|
-
this.healthScore =
|
|
299
|
+
const n = await this.api.calculateHealthScore();
|
|
300
|
+
let r = 0;
|
|
301
|
+
t && await this.loadHealthScoreChangeReports();
|
|
302
|
+
const o = n?.health_score || 0, a = this.healthScoreChangeReports.at(-1)?.older_health_score || 0;
|
|
303
|
+
r = o - a, d(() => {
|
|
304
|
+
this.healthScore = n, this.healthScoreChange = r;
|
|
305
305
|
});
|
|
306
|
-
} catch (
|
|
307
|
-
console.error("Error calculating health score:",
|
|
306
|
+
} catch (n) {
|
|
307
|
+
console.error("Error calculating health score:", n);
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
310
|
loadAverageHealthScores = async () => {
|
package/dist/common/index.es.js
CHANGED
|
@@ -63,7 +63,7 @@ import { startOfToday as k } from "date-fns/startOfToday";
|
|
|
63
63
|
import { f as wt, a as Ct, b as O } from "../BudgetUtil-CrAD2kHT.mjs";
|
|
64
64
|
import { g as Oo, e as Po, c as Fo, d as Ho, i as Go } from "../BudgetUtil-CrAD2kHT.mjs";
|
|
65
65
|
import { a as xt } from "../DebtsStore-BIbOVCPe.mjs";
|
|
66
|
-
import { F as Dt } from "../FinstrongStore-
|
|
66
|
+
import { F as Dt } from "../FinstrongStore-OylmCNuf.mjs";
|
|
67
67
|
import { A as At, m as vt, a as Et, b as Tt } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
68
68
|
import { M as Bt } from "../MerchantStore-WvZ4gnQe.mjs";
|
|
69
69
|
import { N as It } from "../NetWorthStore-yV43kJro.mjs";
|