1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +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 GitHub
parent 07f16d37be
commit 8721c80054
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}