Skip to content

Commit

Permalink
fix: maybe fixed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Dec 16, 2024
1 parent a197644 commit 0ceaeb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/components/App/pages/Profile/pages/Collected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,16 @@ export const Collected = () => {
};

React.useEffect(() => {
if (!account || !ethereum || !chainId) return;

const deferredClient = new DeferredClient(
account,
ethereum,
chainId as ChainId,
);

deferredClient.balanceOf(account).then(setBalance).catch(console.error);
});
}, [account, ethereum, chainId]);

React.useEffect(() => {
if (balance === undefined) return;
Expand Down

0 comments on commit 0ceaeb1

Please sign in to comment.