Skip to content

Commit

Permalink
feat(ui): apply diamond architecture to the credits page (#823)
Browse files Browse the repository at this point in the history
* fix: removed protocolcontracts in dependencies to avoid infinite loop
  • Loading branch information
bojan07 authored Oct 16, 2023
1 parent a2d5241 commit 8c446fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dapp/components/lib/hooks/use-balances.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const BalancesContextProvider: React.FC<ChildrenShim> = ({ children }) =>

useEffect(() => {
refreshBalances();
}, [walletAddress, protocolContracts]);
}, [walletAddress]);

return <BalancesContext.Provider value={[balances, refreshBalances]}>{children}</BalancesContext.Provider>;
};
Expand Down

1 comment on commit 8c446fa

@ubiquibot
Copy link

@ubiquibot ubiquibot bot commented on 8c446fa Oct 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.