From 01d23ab2f2e6e27b45b4dbc7ab3e7b9fad0e6b55 Mon Sep 17 00:00:00 2001 From: Jhonatan Gonzalez Date: Wed, 23 Oct 2024 08:56:18 +1100 Subject: [PATCH] [NO CHANGELOG][Add Funds Widget] fix back button visibility (#2329) --- .../widgets-lib/src/widgets/add-funds/views/AddFunds.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/checkout/widgets-lib/src/widgets/add-funds/views/AddFunds.tsx b/packages/checkout/widgets-lib/src/widgets/add-funds/views/AddFunds.tsx index 91bdadeb29..422437c7d0 100644 --- a/packages/checkout/widgets-lib/src/widgets/add-funds/views/AddFunds.tsx +++ b/packages/checkout/widgets-lib/src/widgets/add-funds/views/AddFunds.tsx @@ -481,7 +481,7 @@ export function AddFunds({ [allowedTokens, handleTokenChange, isSelected, defaultTokenImage], ); - const shouldShowBackButton = showBackButton ?? !!onBackButtonClick; + const shouldShowBackButton = showBackButton && onBackButtonClick; const routeInputsReady = !!selectedToken && !!fromAddress && validateToAmount(selectedAmount).isValid