1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

Ensure that handleChange in token-input.component handles empty values (#12835)

This commit is contained in:
Dan J Miller 2021-11-24 16:40:13 -03:30 committed by Dan Miller
parent 53d12135ad
commit 21a7b961d7

View File

@ -82,7 +82,7 @@ export default class TokenInput extends PureComponent {
let newDecimalValue = decimalValue;
if (decimals && applyDecimals) {
if (decimals && decimalValue && applyDecimals) {
newDecimalValue = new BigNumber(decimalValue, 10).toFixed(decimals);
}