From 9c4af85664a4059160ecc648a036478855a7da47 Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Tue, 23 Feb 2021 13:21:43 -0330 Subject: [PATCH] Ensure that swap approve tx and swap tx always have the same gas price (#10501) --- ui/app/ducks/swaps/swaps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/ducks/swaps/swaps.js b/ui/app/ducks/swaps/swaps.js index f59f20639..1354596e2 100644 --- a/ui/app/ducks/swaps/swaps.js +++ b/ui/app/ducks/swaps/swaps.js @@ -288,7 +288,7 @@ export const getApproveTxParams = (state) => { } const data = getSwapsState(state)?.customApproveTxData || approvalNeeded.data; - const gasPrice = getCustomSwapsGasPrice(state) || approvalNeeded.gasPrice; + const gasPrice = getUsedSwapsGasPrice(state); return { ...approvalNeeded, gasPrice, data }; };