Skip to content

Commit

Permalink
unblock deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcramer committed Sep 9, 2024
1 parent 80b4ecc commit 5b31b96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/swap/components/SwapProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -273,7 +273,7 @@ export function SwapProvider({
from: from.token,
to: to.token,
useAggregator,
maxSlippage,
maxSlippage: maxSlippage2.toString(),
});
if (isSwapError(response)) {
setLifeCycleStatus({
Expand Down

0 comments on commit 5b31b96

Please sign in to comment.