@fileverse-dev/fortune-react 1.0.63 → 1.0.64
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.
|
@@ -263,6 +263,7 @@ export function convertCellsToCrypto(_a) {
|
|
|
263
263
|
var fiatSymbol = (_e = cell === null || cell === void 0 ? void 0 : cell.m) === null || _e === void 0 ? void 0 : _e.split(" ")[0];
|
|
264
264
|
var fiatVsCryptoPrice = getCachedPrice(coingeckoId, getFiatGeckoId(fiatSymbol, cell === null || cell === void 0 ? void 0 : cell.baseCurrency));
|
|
265
265
|
var cryptoValue = baseValue / fiatVsCryptoPrice;
|
|
266
|
+
if (typeof cryptoValue !== "number" || Number.isNaN(cryptoValue)) return;
|
|
266
267
|
cellUpdates.push({
|
|
267
268
|
row: row,
|
|
268
269
|
col: col,
|
|
@@ -270,6 +270,7 @@ function convertCellsToCrypto(_a) {
|
|
|
270
270
|
var fiatSymbol = (_e = cell === null || cell === void 0 ? void 0 : cell.m) === null || _e === void 0 ? void 0 : _e.split(" ")[0];
|
|
271
271
|
var fiatVsCryptoPrice = (0, _cryptoApi.getCachedPrice)(coingeckoId, getFiatGeckoId(fiatSymbol, cell === null || cell === void 0 ? void 0 : cell.baseCurrency));
|
|
272
272
|
var cryptoValue = baseValue / fiatVsCryptoPrice;
|
|
273
|
+
if (typeof cryptoValue !== "number" || Number.isNaN(cryptoValue)) return;
|
|
273
274
|
cellUpdates.push({
|
|
274
275
|
row: row,
|
|
275
276
|
col: col,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.64",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"tsc": "tsc"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@fileverse-dev/fortune-core": "1.0.
|
|
19
|
+
"@fileverse-dev/fortune-core": "1.0.64",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-20",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|