Skip to content

Commit

Permalink
chore: close if data not valid
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurgeron committed Sep 24, 2024
1 parent 12f559c commit 2e46ea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/ui/NetworkMonitor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export function NetworkMonitor({
}, []);

useEffect(() => {
setIsOpen((prev) => {
setIsOpen(() => {
if (!validConnector || walletChainId == null) {
return prev;
return false;
}
return walletChainId !== chainId;
});
Expand Down

0 comments on commit 2e46ea9

Please sign in to comment.