diff --git a/src/pages/portfolio/AccountDetailsAndHistory.tsx b/src/pages/portfolio/AccountDetailsAndHistory.tsx index 98ce5879a..b06cd8a4e 100644 --- a/src/pages/portfolio/AccountDetailsAndHistory.tsx +++ b/src/pages/portfolio/AccountDetailsAndHistory.tsx @@ -102,8 +102,13 @@ export const AccountDetailsAndHistory = () => { const selectedLocale = useAppSelector(getSelectedLocale); const onboardingState = useAppSelector(getOnboardingState); - const { buyingPower, equity, freeCollateral, leverage, marginUsage } = - useAppSelector(getSubaccount, shallowEqual) ?? {}; + const { + buyingPower, + equity, + freeCollateral: availableBalance, + leverage, + marginUsage, + } = useAppSelector(getSubaccount, shallowEqual) ?? {}; const [tooltipContext, setTooltipContext] = useState>(); @@ -127,7 +132,7 @@ export const AccountDetailsAndHistory = () => { key: 'AvailableBalance', labelKey: STRING_KEYS.AVAILABLE_BALANCE, type: OutputType.Fiat, - value: freeCollateral?.current, + value: availableBalance?.current, }, { key: 'Leverage', diff --git a/src/views/AccountInfo/AccountInfoConnectedState.tsx b/src/views/AccountInfo/AccountInfoConnectedState.tsx index afa93ac54..c417ec5af 100644 --- a/src/views/AccountInfo/AccountInfoConnectedState.tsx +++ b/src/views/AccountInfo/AccountInfoConnectedState.tsx @@ -57,7 +57,6 @@ export const AccountInfoConnectedState = () => { const { dydxAccounts } = useAccounts(); - // const inputErrors = useAppSelector(getInputErrors, shallowEqual); const subAccount = useAppSelector(getSubaccount, shallowEqual); const isLoading = useAppSelector(calculateIsAccountLoading);