From d279e5f57c73bcb7938fc0290e1c52b307517a1a Mon Sep 17 00:00:00 2001 From: Francisco Tobar Date: Wed, 30 Oct 2024 09:53:20 -0600 Subject: [PATCH] fix: error message on proposal creation not properly displayed --- src/components/MainContainer/MainContainer.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/components/MainContainer/MainContainer.tsx b/src/components/MainContainer/MainContainer.tsx index 3a9adedb..def973d7 100644 --- a/src/components/MainContainer/MainContainer.tsx +++ b/src/components/MainContainer/MainContainer.tsx @@ -34,13 +34,6 @@ export const MainContainer: FC = ({ 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