diff --git a/apps/frontend/src/hooks/aave/useAaveBorrow.tsx b/apps/frontend/src/hooks/aave/useAaveBorrow.tsx index c9baee288..2b1587021 100644 --- a/apps/frontend/src/hooks/aave/useAaveBorrow.tsx +++ b/apps/frontend/src/hooks/aave/useAaveBorrow.tsx @@ -22,7 +22,9 @@ export const useAaveBorrow = () => { const { setTransactions, setIsOpen, setTitle } = useTransactionContext(); const aaveBorrowTransactionsFactory = useMemo(() => { - if (!signer) return null; + if (!signer) { + return null; + } return new AaveBorrowTransactionsFactory( AAVE_CONTRACT_ADDRESSES.POOL, AAVE_CONTRACT_ADDRESSES.WETH_GATEWAY, diff --git a/apps/frontend/src/hooks/aave/useAaveRepay.tsx b/apps/frontend/src/hooks/aave/useAaveRepay.tsx index 5d0f8cc05..f76a41695 100644 --- a/apps/frontend/src/hooks/aave/useAaveRepay.tsx +++ b/apps/frontend/src/hooks/aave/useAaveRepay.tsx @@ -22,7 +22,9 @@ export const useAaveRepay = () => { const { setTransactions, setIsOpen, setTitle } = useTransactionContext(); const aaveRepayTransactionsFactory = useMemo(() => { - if (!signer) return null; + if (!signer) { + return null; + } return new AaveRepayTransactionsFactory( AAVE_CONTRACT_ADDRESSES.POOL, AAVE_CONTRACT_ADDRESSES.WETH_GATEWAY, diff --git a/apps/frontend/src/hooks/aave/useAaveSupply.tsx b/apps/frontend/src/hooks/aave/useAaveSupply.tsx index 73aad67e3..ebd6595ec 100644 --- a/apps/frontend/src/hooks/aave/useAaveSupply.tsx +++ b/apps/frontend/src/hooks/aave/useAaveSupply.tsx @@ -22,7 +22,9 @@ export const useAaveSupply = () => { const { setTransactions, setIsOpen, setTitle } = useTransactionContext(); const aaveSupplyTransactionsFactory = useMemo(() => { - if (!signer) return null; + if (!signer) { + return null; + } return new AaveSupplyTransactionsFactory( AAVE_CONTRACT_ADDRESSES.POOL, AAVE_CONTRACT_ADDRESSES.WETH_GATEWAY, diff --git a/apps/frontend/src/hooks/aave/useAaveWithdraw.tsx b/apps/frontend/src/hooks/aave/useAaveWithdraw.tsx index f2f946a77..cfa18870c 100644 --- a/apps/frontend/src/hooks/aave/useAaveWithdraw.tsx +++ b/apps/frontend/src/hooks/aave/useAaveWithdraw.tsx @@ -22,7 +22,9 @@ export const useAaveWithdraw = () => { const { setTransactions, setIsOpen, setTitle } = useTransactionContext(); const aaveWithdrawTransactionsFactory = useMemo(() => { - if (!signer) return null; + if (!signer) { + return null; + } return new AaveWithdrawTransactionsFactory( AAVE_CONTRACT_ADDRESSES.POOL, AAVE_CONTRACT_ADDRESSES.WETH_GATEWAY,