mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-24 16:49:30 +00:00
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…
x
Reference in New Issue
Block a user