Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/client/src/hooks/useChat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ export const useChat = () => {


} catch (error) {
console.error('Error al enviar el mensaje:', error)
setIsLoading(false)
} finally {
setIsLoading(false)
Expand Down
6 changes: 5 additions & 1 deletion app/client/src/routes/route.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { createBrowserRouter } from "react-router-dom";
import { Navigate, createBrowserRouter } from "react-router-dom";
import { Chat } from "@pages/Chat";
import About from "@pages/About";
import Documentation from "@pages/Documentation";
Expand All @@ -23,6 +23,10 @@ export const router = createBrowserRouter([
{
path: "/documentation",
element: <Documentation />
},
{
path: "*",
element: <Navigate to="/" replace />
}
]
}
Expand Down
6 changes: 5 additions & 1 deletion app/client/src/storage/authStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ export const useAuthStore = create<AuthState>((set) => ({
credentials: 'include',
})
} catch (error) {
console.error('Backend logout failed:', error)
set({
error: error instanceof Error ? error.message : 'Logout failed',
isLoading: false,
})
return
}
try {
await signOut(firebaseAuth)
Expand Down
Loading