Skip to content

Commit

Permalink
🚨 allowances: add missing hook dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo committed Apr 17, 2024
1 parent aa758b7 commit 92fbf8a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions hooks/useAllowances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,11 @@ export const useAllowances = (): AllowancesState => {
} as const,
]);
const ethRouterDescriptor = ethRouter
? ([
{
symbol: 'WETH',
spenderAddress: ethRouter.address,
spenderName: 'ETHRouter',
type: 'shareAsset',
},
] as const)
? ([{ symbol: 'WETH', spenderAddress: ethRouter.address, spenderName: 'ETHRouter', type: 'shareAsset' }] as const)
: [];

return [...assetDescriptors, ...ethRouterDescriptor];
}, [assetSymbols, debtManager, ethRouter]);
}, [assetSymbols, debtManager, ethRouter, installmentsRouter]);

const descriptorToAllowance = useCallback(
async (descriptor: AllowanceDescriptor, owner: Address) => {
Expand Down

0 comments on commit 92fbf8a

Please sign in to comment.