From 17a925863bf99b50d6a350a68ce7fca8ad5b47a2 Mon Sep 17 00:00:00 2001 From: Mimi Immutable Date: Wed, 18 Dec 2024 13:57:01 +1100 Subject: [PATCH] Hide gas drawer --- .../widgets-lib/src/widgets/add-tokens/views/AddTokens.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/checkout/widgets-lib/src/widgets/add-tokens/views/AddTokens.tsx b/packages/checkout/widgets-lib/src/widgets/add-tokens/views/AddTokens.tsx index cfb1b45bf8..4690241fc4 100644 --- a/packages/checkout/widgets-lib/src/widgets/add-tokens/views/AddTokens.tsx +++ b/packages/checkout/widgets-lib/src/widgets/add-tokens/views/AddTokens.tsx @@ -672,7 +672,7 @@ export function AddTokens({ }, [id, experiments]); useEffect(() => { - if (selectedRouteData?.isInsufficientGas) { + if (selectedRouteData?.isInsufficientGas && shouldDisplayRoutePriceDetails) { setShowNotEnoughGasDrawer(true); } else { setShowNotEnoughGasDrawer(false);