From 0dd3c9afa7128fe1801e38e307593d0e07a11240 Mon Sep 17 00:00:00 2001 From: Linkie Link Date: Mon, 4 Dec 2023 16:18:05 +0100 Subject: [PATCH] fix: disable lend on auto repay on trade --- src/components/Trade/TradeModule/SwapForm/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Trade/TradeModule/SwapForm/index.tsx b/src/components/Trade/TradeModule/SwapForm/index.tsx index a98ef094..8c43afeb 100644 --- a/src/components/Trade/TradeModule/SwapForm/index.tsx +++ b/src/components/Trade/TradeModule/SwapForm/index.tsx @@ -187,7 +187,7 @@ export default function SwapForm(props: Props) { removeCoin, addCoin, debtCoin, - isAutoLendEnabled ? 'lend' : 'deposit', + isAutoLendEnabled && !isAutoRepayChecked ? 'lend' : 'deposit', isAutoRepayChecked, ) }, 100),