Skip to content

Commit

Permalink
@pietro-maximoff suggestion applied: 'it doesn't need to be changed'
Browse files Browse the repository at this point in the history
  • Loading branch information
luchopcerra committed Sep 13, 2024
1 parent 549748a commit 500fe4c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion apps/frontend/src/hooks/aave/useAaveBorrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion apps/frontend/src/hooks/aave/useAaveRepay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion apps/frontend/src/hooks/aave/useAaveSupply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion apps/frontend/src/hooks/aave/useAaveWithdraw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 500fe4c

Please sign in to comment.