diff --git a/src/components/UserLendingCard/index.tsx b/src/components/UserLendingCard/index.tsx index d75fa65..fd41cd2 100644 --- a/src/components/UserLendingCard/index.tsx +++ b/src/components/UserLendingCard/index.tsx @@ -5,6 +5,7 @@ import { useUserBalance, useBorrowedAmount, useBorrowingPower, + useUserObligationByReserve, } from "./../../hooks"; import { LendingReserve } from "../../models/lending"; import { formatNumber } from "../../utils/utils"; @@ -44,6 +45,7 @@ export const UserLendingCard = (props: { totalInQuote: borrowingPowerInUSD, borrowingPower, } = useBorrowingPower(address); + const { userObligationsByReserve } = useUserObligationByReserve(address); return ( - - - + {!!userObligationsByReserve.length && ( + + + + )} );