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
|
<ListItemText
|
||||||
className={classes.tokenData}
|
className={classes.tokenData}
|
||||||
primary={token.name}
|
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>
|
</ListItemIcon>
|
||||||
<ListItemText
|
<ListItemText
|
||||||
primary={token.name}
|
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}`}
|
data-testid={`select-token-${token.name}`}
|
||||||
/>
|
/>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
|
Loading…
Reference in New Issue