From d44c03b8821c0974406b39b36ddba45df75c63bb Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Mon, 19 Oct 2020 15:21:36 -0230 Subject: [PATCH] Cast MIN_GAS_LIMIT_DEC to number before passing to minimumGasLimit (#9636) --- .../advanced-gas-inputs/advanced-gas-inputs.component.js | 2 +- .../gas-modal-page-container.container.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/components/app/gas-customization/advanced-gas-inputs/advanced-gas-inputs.component.js b/ui/app/components/app/gas-customization/advanced-gas-inputs/advanced-gas-inputs.component.js index 6f299cbaa..5886f75d9 100644 --- a/ui/app/components/app/gas-customization/advanced-gas-inputs/advanced-gas-inputs.component.js +++ b/ui/app/components/app/gas-customization/advanced-gas-inputs/advanced-gas-inputs.component.js @@ -23,7 +23,7 @@ export default class AdvancedGasInputs extends Component { } static defaultProps = { - minimumGasLimit: MIN_GAS_LIMIT_DEC, + minimumGasLimit: Number(MIN_GAS_LIMIT_DEC), } constructor (props) { diff --git a/ui/app/components/app/gas-customization/gas-modal-page-container/gas-modal-page-container.container.js b/ui/app/components/app/gas-customization/gas-modal-page-container/gas-modal-page-container.container.js index c2275c247..2be9e0067 100644 --- a/ui/app/components/app/gas-customization/gas-modal-page-container/gas-modal-page-container.container.js +++ b/ui/app/components/app/gas-customization/gas-modal-page-container/gas-modal-page-container.container.js @@ -76,7 +76,7 @@ const mapStateToProps = (state, ownProps) => { customTotalSupplement = '', extraInfoRow = null, useFastestButtons = false, - minimumGasLimit = MIN_GAS_LIMIT_DEC, + minimumGasLimit = Number(MIN_GAS_LIMIT_DEC), } = modalProps || {} const { transaction = {} } = ownProps const selectedTransaction = isSwap