Skip to content

Commit

Permalink
fix: error message on proposal creation not properly displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscotobar committed Oct 30, 2024
1 parent b7f5903 commit d279e5f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/components/MainContainer/MainContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@ export const MainContainer: FC<Props> = ({ children, notProtected = false }) =>
disconnect()
}

useEffect(() => {
// Clear message on route change unless it is Unsupported network
if (message && message.title !== 'Unsupported network') {
setMessage(null)
}
}, [pathname, message, setMessage])

useEffect(() => {
// This is to prevent Hydration error on client side
// because useAccount hook is not available on server side
Expand Down

0 comments on commit d279e5f

Please sign in to comment.