mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-22 05:28:45 -05:00
fix: Formbricks client route check errors if not enabled (#2311)
This commit is contained in:
@@ -27,7 +27,9 @@ export default function FormbricksClient({ session }) {
|
||||
}, [session]);
|
||||
|
||||
useEffect(() => {
|
||||
formbricks?.registerRouteChange();
|
||||
if (formbricksEnabled && formbricks) {
|
||||
formbricks?.registerRouteChange();
|
||||
}
|
||||
}, [pathname, searchParams]);
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user