Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

needs to check for search params

Sara Vieirac92e5d1e16be
diff --git a/app/shared/session/useLoginErrorMessage.ts b/app/shared/session/useLoginErrorMessage.ts
index 8c44e059df..38dc96651c 100644
--- a/app/shared/session/useLoginErrorMessage.ts
+++ b/app/shared/session/useLoginErrorMessage.ts
@@ -54,9 +54,7 @@ export const useLoginErrorMessage = (): string => {
}
setSearchParams({});
- // we only care for the URL at page load
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, []);
+ }, [searchParams, setSearchParams]);
return messageToReturn;
};