fix: remove unused refresh destructure from App.tsx after review fix

The prior review fix (#4) removed the redundant `await refresh()` call from
the onCreate handler, but left `refresh` in the useSessions() destructure.
TypeScript (noUnusedLocals) flagged it as an error, breaking the build.

Remove the unused binding to restore a clean build.
This commit is contained in:
Ken
2026-05-26 19:48:40 +00:00
parent 8e69ac185e
commit b2a278762b
+1 -1
View File
@@ -8,7 +8,7 @@ import { RightPanel } from './components/RightPanel'
function App() {
const { user, loading: authLoading, login, logout } = useAuth()
const { sessions, activeSessionId, createNew, switchTo, refresh } = useSessions()
const { sessions, activeSessionId, createNew, switchTo } = useSessions()
const { messages, isStreaming, sendMessage } = useChat(activeSessionId)
if (authLoading) {