From b2a278762b353471d5827bd43d55a0f27675d3b9 Mon Sep 17 00:00:00 2001 From: Ken Date: Tue, 26 May 2026 19:48:40 +0000 Subject: [PATCH] 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. --- frontend/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 99bdf0a..b86650d 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -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) {