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:
parent
53d12135ad
commit
21a7b961d7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user