use `tokenBalance` for SendFunds modal (#2056)
This commit is contained in:
parent
8d8a971313
commit
a504ad495a
|
@ -34,7 +34,7 @@ const SelectedToken = ({ tokenAddress, tokens }: SelectTokenProps): ReactElement
|
|||
<ListItemText
|
||||
className={classes.tokenData}
|
||||
primary={token.name}
|
||||
secondary={`${formatAmount(token.balance?.toString() ?? '0')} ${token.symbol}`}
|
||||
secondary={`${formatAmount(token.balance?.tokenBalance.toString() ?? '0')} ${token.symbol}`}
|
||||
/>
|
||||
</>
|
||||
) : (
|
||||
|
@ -73,7 +73,7 @@ const TokenSelectField = ({ initialValue, isValid = true, tokens }: TokenSelectF
|
|||
</ListItemIcon>
|
||||
<ListItemText
|
||||
primary={token.name}
|
||||
secondary={`${formatAmount(token.balance?.toString() ?? '0')} ${token.symbol}`}
|
||||
secondary={`${formatAmount(token.balance?.tokenBalance.toString() ?? '0')} ${token.symbol}`}
|
||||
data-testid={`select-token-${token.name}`}
|
||||
/>
|
||||
</MenuItem>
|
||||
|
|
Loading…
Reference in New Issue