Skip to content

Commit

Permalink
fix: added single lofic for views
Browse files Browse the repository at this point in the history
  • Loading branch information
geolffreym committed Dec 3, 2024
1 parent c9006a1 commit f784328
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/loginModal/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ export const LoginModal: React.FC<LoginModalProps> = ({ open, onClose }) => {
}
}

return ()=> disconnect()
}, [open, view, isDisconnected]);
return () => {
if (connector) disconnect({ connector })
}
}, [open, isDisconnected]);

useEffect(() => {
if (error) {
Expand Down

0 comments on commit f784328

Please sign in to comment.