diff --git a/src/components/AdvancedOptions/EthereumKind.js b/src/components/AdvancedOptions/EthereumKind.js index 0fac97b3..e70e5f3f 100644 --- a/src/components/AdvancedOptions/EthereumKind.js +++ b/src/components/AdvancedOptions/EthereumKind.js @@ -25,7 +25,7 @@ export default translate()(({ gasLimit, onChangeGasLimit, t }: Props) => ( { - const gasLimit = parseInt(str, 10) + const gasLimit = parseInt(str || 0, 10) if (!isNaN(gasLimit) && isFinite(gasLimit)) onChangeGasLimit(gasLimit) else onChangeGasLimit(0x5208) }}