Browse Source

Ethereum gasLimit field to not fallback on empty

master
Gaëtan Renaudeau 7 years ago
parent
commit
a8d515ab31
  1. 2
      src/components/AdvancedOptions/EthereumKind.js

2
src/components/AdvancedOptions/EthereumKind.js

@ -25,7 +25,7 @@ export default translate()(({ gasLimit, onChangeGasLimit, t }: Props) => (
<Input <Input
value={gasLimit} value={gasLimit}
onChange={str => { onChange={str => {
const gasLimit = parseInt(str, 10) const gasLimit = parseInt(str || 0, 10)
if (!isNaN(gasLimit) && isFinite(gasLimit)) onChangeGasLimit(gasLimit) if (!isNaN(gasLimit) && isFinite(gasLimit)) onChangeGasLimit(gasLimit)
else onChangeGasLimit(0x5208) else onChangeGasLimit(0x5208)
}} }}

Loading…
Cancel
Save