use `tokenBalance` for SendFunds modal (#2056)

This commit is contained in:
Fernando 2021-03-18 08:20:49 -03:00 committed by GitHub
parent 8d8a971313
commit a504ad495a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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>