Skip to content

Commit b492f09

Browse files
committed
remove long
1 parent df2488d commit b492f09

File tree

4 files changed

+2
-9
lines changed

4 files changed

+2
-9
lines changed

examples/asset-list/hooks/queries/useTotalAssets.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ export const useTotalAssets = (chainName: string) => {
124124
queriesData;
125125

126126
const stakedTotal = delegations
127-
.map((coin) => calcCoinDollarValue(prices, coin))
127+
?.map((coin) => calcCoinDollarValue(prices, coin))
128128
.reduce((total, cur) => total.plus(cur), zero)
129129
.toString();
130130

131131
const balancesTotal = allBalances
132-
.filter(({ denom }) => !denom.startsWith('gamm') && prices[denom])
132+
?.filter(({ denom }) => !denom.startsWith('gamm') && prices[denom])
133133
.map((coin) => calcCoinDollarValue(prices, coin))
134134
.reduce((total, cur) => total.plus(cur), zero)
135135
.toString();

examples/asset-list/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"chakra-react-select": "4.4.3",
3535
"fast-fuzzy": "1.12.0",
3636
"framer-motion": "9.0.7",
37-
"long": "5.2.1",
3837
"next": "12.2.5",
3938
"osmo-query": "16.5.1",
4039
"react": "18.2.0",

examples/swap-tokens/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"chakra-react-select": "4.6.0",
3636
"decimal.js": "10.4.3",
3737
"framer-motion": "9.0.7",
38-
"long": "5.2.1",
3938
"next": "12.2.5",
4039
"osmo-query": "16.5.1",
4140
"react": "18.2.0",

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13725,11 +13725,6 @@ log-update@^4.0.0:
1372513725
slice-ansi "^4.0.0"
1372613726
wrap-ansi "^6.2.0"
1372713727

13728-
13729-
version "5.2.1"
13730-
resolved "https://registry.npmmirror.com/long/-/long-5.2.1.tgz"
13731-
integrity sha512-GKSNGeNAtw8IryjjkhZxuKB3JzlcLTwjtiQCHKvqQet81I93kXslhDQruGI/QsddO83mcDToBVy7GqGS/zYf/A==
13732-
1373313728
[email protected], long@^5.2.0, long@^5.2.1:
1373413729
version "5.2.3"
1373513730
resolved "https://registry.npmjs.org/long/-/long-5.2.3.tgz"

0 commit comments

Comments
 (0)