From a8d515ab317e2a084121cad5bb2ce3bd2ab71935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Sat, 30 Jun 2018 22:31:20 +0200 Subject: [PATCH] Ethereum gasLimit field to not fallback on empty --- src/components/AdvancedOptions/EthereumKind.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }}