From d99bc4571c7e405ecd99d7abecccf2b1417ce7df Mon Sep 17 00:00:00 2001 From: Ryderjj89 Date: Sun, 14 Sep 2025 11:56:42 -0400 Subject: [PATCH] Fix TypeScript compilation error - add explicit type annotation for prev parameter --- 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 e86771bf..9f79e651 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -269,7 +269,7 @@ function App() { const handleFavoriteChange = () => { // This will trigger a re-render of the FavoritesMenu - setUser(prev => ({ ...prev })); + setUser((prev: any) => ({ ...prev })); }; if (!bookName || !chapterNumber || !actualBookName) {