@rotorjs/dashboard 0.5.1 → 0.5.2

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.
Files changed (2) hide show
  1. package/dist/main.js +2 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -206,8 +206,9 @@ var p = class extends n {
206
206
  getLocale(e) {
207
207
  if (e?.locale) return e.locale;
208
208
  if (this.#e?.locale) return this.#e.locale;
209
+ this.#e?.reducer?.addInterest(f(_));
209
210
  let t = this.#e?.reducer?.engine.getFact(_)?.value;
210
- return this.#e?.reducer?.addInterest(f(_)), typeof t == "string" ? t : void 0;
211
+ return typeof t == "string" && t ? t : void 0;
211
212
  }
212
213
  getFormat(e) {
213
214
  return new Intl.NumberFormat(this.getLocale(e));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rotorjs/dashboard",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Rotor",
5
5
  "author": {
6
6
  "name": "Aaron Burmeister"