From f82e5d4b0952794f74f2647b9ae02d181f7bc28d Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 28 Jul 2021 10:05:42 +0200 Subject: [PATCH] code duplication --- apps/remix-ide/src/app/ui/confirmDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/ui/confirmDialog.js b/apps/remix-ide/src/app/ui/confirmDialog.js index 820243e0d7..670470597f 100644 --- a/apps/remix-ide/src/app/ui/confirmDialog.js +++ b/apps/remix-ide/src/app/ui/confirmDialog.js @@ -112,7 +112,7 @@ function confirmDialog (tx, network, amount, gasEstimation, newGasPriceCb, initi el.querySelector('#gasprice').value = gasPriceValue onGasPriceChange() } - if (el.querySelector('#maxfee') && network && network.lastBlock && network.lastBlock.baseFeePerGas && el.querySelector('#maxfee')) { + if (el.querySelector('#maxfee') && network && network.lastBlock && network.lastBlock.baseFeePerGas) { el.querySelector('#maxfee').value = parseInt(network.lastBlock.baseFeePerGas, 16) onMaxFeeChange() }