We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 22c17d0 + 8246b63 commit 9201264Copy full SHA for 9201264
1 file changed
src/features/chat/components/ChatWidget.tsx
@@ -32,7 +32,8 @@ export function ChatWidget() {
32
const { messages, input, setInput, isLoading, isReady, error, handleSubmit, stop, clear } = useChat({
33
conflictId: CONFLICT_ID,
34
});
35
- const shouldShowOnCurrentRoute = !isMobile || MOBILE_CHAT_ROUTES.includes(pathname);
+ const isMapRoute = pathname.startsWith('/dashboard/map');
36
+ const shouldShowOnCurrentRoute = !isMapRoute && (!isMobile || MOBILE_CHAT_ROUTES.includes(pathname));
37
38
// Lock body scroll on mobile when chat is open
39
useEffect(() => {
0 commit comments