From eea226a9d5d436f6242c8b58f2928e93b05646ab Mon Sep 17 00:00:00 2001 From: jramos Date: Fri, 13 Feb 2026 10:38:33 -0700 Subject: [PATCH] Fix: Add user to useAuth destructuring for knowledge base panel --- frontend/src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/App.js b/frontend/src/App.js index 43eee22..fda3cd3 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -158,7 +158,7 @@ const API_HOST = process.env.REACT_APP_API_HOST || 'http://localhost:3001'; const severityLevels = ['All Severities', 'Critical', 'High', 'Medium', 'Low']; export default function App() { - const { isAuthenticated, loading: authLoading, canWrite, isAdmin } = useAuth(); + const { isAuthenticated, loading: authLoading, canWrite, isAdmin, user } = useAuth(); const [searchQuery, setSearchQuery] = useState(''); const [selectedVendor, setSelectedVendor] = useState('All Vendors'); const [selectedSeverity, setSelectedSeverity] = useState('All Severities');