Skip to content

Commit

Permalink
Show total balance in account selector
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed May 25, 2023
1 parent cc2a4f3 commit 67ffd82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const AccountSelector = memo((props: Props) => {
<Account
key={wallet.address}
address={wallet.address}
balance={wallet.balance?.available} // TODO: get total balance
balance={wallet.balance?.total}
type={wallet.type}
onClick={switchAccount}
isActive={wallet.address === activeAddress}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function ImportAccountsSelector({ accounts }: ImportAccountsSelectorSelectorProp
{accounts.map(a => (
<Account
address={a.address}
balance={a.balance ? a.balance.available : null} // TODO: get total balance
balance={a.balance ? a.balance.total : null}
type={a.type}
onClick={toggleAccount}
isActive={a.selected}
Expand Down

0 comments on commit 67ffd82

Please sign in to comment.