File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/components/account/AccountDetails Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ import {
34
34
calculateAccountBalanceValue ,
35
35
calculateAccountLeverage ,
36
36
} from 'utils/accounts'
37
- import usePerpsMarket from 'hooks/perps/usePerpsMarket '
37
+ import usePerpsMarketStates from 'hooks/perps/usePerpsMarketStates '
38
38
39
39
interface Props {
40
40
account : Account
@@ -102,7 +102,7 @@ function AccountDetails(props: Props) {
102
102
const { availableAssets : lendingAvailableAssets , accountLentAssets } =
103
103
useLendingMarketAssetsTableData ( )
104
104
105
- const perpsMarket = usePerpsMarket ( )
105
+ const perpsMarketStates = usePerpsMarketStates ( )
106
106
107
107
const lendingAssetsData = useMemo (
108
108
( ) => [ ...lendingAvailableAssets , ...accountLentAssets ] ,
@@ -118,7 +118,7 @@ function AccountDetails(props: Props) {
118
118
vaultAprs ,
119
119
astroLpAprs ,
120
120
perpsVault ?. apy || 0 ,
121
- perpsMarket || undefined ,
121
+ perpsMarketStates . data || [ ] ,
122
122
) ,
123
123
[
124
124
updatedAccount ,
@@ -129,7 +129,7 @@ function AccountDetails(props: Props) {
129
129
vaultAprs ,
130
130
astroLpAprs ,
131
131
perpsVault ?. apy ,
132
- perpsMarket ,
132
+ perpsMarketStates . data ,
133
133
] ,
134
134
)
135
135
const isFullWidth =
You can’t perform that action at this time.
0 commit comments