Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
moo-onthelawn committed Aug 12, 2024
1 parent 4f2b8e0 commit fd45ff8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 8 additions & 3 deletions src/pages/portfolio/AccountDetailsAndHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<TooltipContextType<PnlDatum>>();

Expand All @@ -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',
Expand Down
1 change: 0 additions & 1 deletion src/views/AccountInfo/AccountInfoConnectedState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export const AccountInfoConnectedState = () => {

const { dydxAccounts } = useAccounts();

// const inputErrors = useAppSelector(getInputErrors, shallowEqual);
const subAccount = useAppSelector(getSubaccount, shallowEqual);
const isLoading = useAppSelector(calculateIsAccountLoading);

Expand Down

0 comments on commit fd45ff8

Please sign in to comment.