We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcf1a7b commit e048454Copy full SHA for e048454
src/components/transactions/Swap/warnings/postInputs/CowAdapterApprovalInfo.tsx
@@ -14,8 +14,9 @@ export function CowAdapterApprovalInfo({ state }: { state: SwapState }) {
14
state.swapType === SwapType.CollateralSwap ||
15
state.swapType === SwapType.DebtSwap ||
16
state.swapType === SwapType.RepayWithCollateral;
17
+ const isFlashloan = state.useFlashloan;
18
- if (!isCow || !isAdapterFlow || approvalTxState?.success) return null;
19
+ if (!isCow || !isAdapterFlow || approvalTxState?.success || !isFlashloan) return null;
20
21
return (
22
<Warning severity="info" icon={false} sx={{ mt: 2, mb: 2 }}>
0 commit comments