mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Ensure exchange rate is stringified before passing to bignumber in confirm-token-transaction component (#12550)
This commit is contained in:
parent
5560b7c3e5
commit
8ae90aec0e
@ -35,7 +35,9 @@ export default function ConfirmTokenTransactionBase({
|
||||
}
|
||||
|
||||
const decimalEthValue = new BigNumber(tokenAmount)
|
||||
.times(new BigNumber(contractExchangeRate))
|
||||
.times(
|
||||
new BigNumber(contractExchangeRate ? String(contractExchangeRate) : 0),
|
||||
)
|
||||
.toFixed();
|
||||
|
||||
return getWeiHexFromDecimalValue({
|
||||
|
Loading…
Reference in New Issue
Block a user