@exodus/fiat-balances 1.0.4 → 1.0.5

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/index.js +1 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -152,7 +152,7 @@ class FiatBalances extends ExodusModule {
152
152
  assetName: baseAssetName,
153
153
  },
154
154
  ].forEach(({ byAssetSource, assetName }) => {
155
- if (!byAssetSource[walletAccount][assetName][field]) {
155
+ if (!byAssetSource[walletAccount]?.[assetName]?.[field]) {
156
156
  set(byAssetSource, [walletAccount, assetName, field], this.#fiatCurrency.ZERO)
157
157
  }
158
158
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/fiat-balances",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "module to track fiat balances based on changes in crypto balances and fiat currency",
5
5
  "author": "Exodus Movement Inc",
6
6
  "license": "UNLICENSED",
@@ -35,5 +35,5 @@
35
35
  "@exodus/models": "^8.9.0",
36
36
  "@exodus/storage-memory": "^1.0.0"
37
37
  },
38
- "gitHead": "1d4de17f736b26087180ced4564e7897c7d1ef95"
38
+ "gitHead": "e85a2df35f6e5ede3f040d7bdf1d931a43eb8d44"
39
39
  }