diff --git a/src/interface/web/app/chat/page.tsx b/src/interface/web/app/chat/page.tsx index fe2f9a23..9a8ee838 100644 --- a/src/interface/web/app/chat/page.tsx +++ b/src/interface/web/app/chat/page.tsx @@ -112,7 +112,6 @@ export default function Chat() { const locationData = useIPLocationData(); const authenticatedData = useAuthenticatedData(); - welcomeConsole(); useEffect(() => { fetch('/api/chat/options') @@ -129,6 +128,8 @@ export default function Chat() { return; }); + welcomeConsole(); + setIsMobileWidth(window.innerWidth < 786); window.addEventListener('resize', () => { diff --git a/src/interface/web/app/share/chat/page.tsx b/src/interface/web/app/share/chat/page.tsx index 4a08f0a2..1d41fb1d 100644 --- a/src/interface/web/app/share/chat/page.tsx +++ b/src/interface/web/app/share/chat/page.tsx @@ -105,9 +105,6 @@ export default function SharedChat() { const locationData = useIPLocationData(); const authenticatedData = useAuthenticatedData(); - welcomeConsole(); - - useEffect(() => { fetch('/api/chat/options') .then(response => response.json()) @@ -123,6 +120,8 @@ export default function SharedChat() { return; }); + welcomeConsole(); + setIsMobileWidth(window.innerWidth < 786); window.addEventListener('resize', () => {