From 5b31b96325e8013717a3168dd36cbc22fc23ffda Mon Sep 17 00:00:00 2001 From: Paul Cramer Date: Mon, 9 Sep 2024 09:55:22 -0700 Subject: [PATCH] unblock deploy --- src/swap/components/SwapProvider.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/swap/components/SwapProvider.tsx b/src/swap/components/SwapProvider.tsx index be11c5aa77..b27dfe4689 100644 --- a/src/swap/components/SwapProvider.tsx +++ b/src/swap/components/SwapProvider.tsx @@ -129,12 +129,12 @@ export function SwapProvider({ } }, [hasHandledSuccess, lifeCycleStatus.statusName, maxSlippage]); - let maxSlippage: string; + let maxSlippage2: string; if ( lifeCycleStatus.statusData && 'maxSlippage' in lifeCycleStatus.statusData ) { - maxSlippage = String(lifeCycleStatus.statusData.maxSlippage); + maxSlippage2 = String(lifeCycleStatus.statusData.maxSlippage); } const handleToggle = useCallback(() => { @@ -203,7 +203,7 @@ export function SwapProvider({ amountReference: 'from', from: source.token, to: destination.token, - maxSlippage, + maxSlippage: maxSlippage2.toString(), useAggregator, }); // If request resolves to error response set the quoteError @@ -273,7 +273,7 @@ export function SwapProvider({ from: from.token, to: to.token, useAggregator, - maxSlippage, + maxSlippage: maxSlippage2.toString(), }); if (isSwapError(response)) { setLifeCycleStatus({