Skip to content

Commit

Permalink
fix(chat): fix logo clicking behavior (Issue #2921) (#2924)
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaBondar authored Jan 10, 2025
1 parent 0d7b47a commit 59d581d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/chat/src/components/Header/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ export const Logo = () => {

const handleLogoClick: MouseEventHandler<HTMLAnchorElement> = (e) => {
if (messageIsStreaming) return e.preventDefault();
if (router.route === '/') createNewConversation();
else {
createNewConversation();
if (router.route === '/') {
e.preventDefault();
}
createNewConversation();
};

return (
Expand Down

0 comments on commit 59d581d

Please sign in to comment.