Skip to content

Commit a71e5cb

Browse files
fix: lint
1 parent c468922 commit a71e5cb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

apps/main/src/llamalend/features/manage-loan/components/RepayForm.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import Button from '@mui/material/Button'
1111
import Stack from '@mui/material/Stack'
1212
import { useSwitch } from '@ui-kit/hooks/useSwitch'
1313
import { t } from '@ui-kit/lib/i18n'
14-
import type { Decimal } from '@ui-kit/utils'
1514
import { InputDivider } from '../../../widgets/InputDivider'
1615
import { useRepayForm } from '../hooks/useRepayForm'
1716

@@ -80,7 +79,7 @@ export const RepayForm = <ChainId extends IChainId>({
8079
collateralToken,
8180
borrowToken,
8281
enabled: isOpen,
83-
debtDelta: values.userBorrowed == null ? undefined : (`-${values.userBorrowed}` as Decimal),
82+
expectedBorrowed: expectedBorrowed.data?.totalBorrowed,
8483
})}
8584
gas={gas}
8685
/>

apps/main/src/llamalend/queries/repay/repay-expected-borrowed.query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const { useQuery: useRepayExpectedBorrowed } = queryFactory({
4444
console.assert(!+stateCollateral, `Expected 0 stateCollateral for non-leverage market, got ${stateCollateral}`)
4545
console.assert(!+userBorrowed, `Expected 0 userBorrowed for non-leverage market, got ${userBorrowed}`)
4646
const { stablecoins, routeIdx } = await market.deleverage.repayStablecoins(userCollateral)
47-
return { totalBorrowed: stablecoins[routeIdx] }
47+
return { totalBorrowed: stablecoins[routeIdx] as Decimal }
4848
},
4949
staleTime: '1m',
5050
validationSuite: repayFromCollateralValidationSuite,

0 commit comments

Comments
 (0)