Fix TypeScript compilation error - add explicit type annotation for prev parameter

This commit is contained in:
Ryderjj89
2025-09-14 11:56:42 -04:00
parent 94d17b1d16
commit d99bc4571c

View File

@@ -269,7 +269,7 @@ function App() {
const handleFavoriteChange = () => { const handleFavoriteChange = () => {
// This will trigger a re-render of the FavoritesMenu // This will trigger a re-render of the FavoritesMenu
setUser(prev => ({ ...prev })); setUser((prev: any) => ({ ...prev }));
}; };
if (!bookName || !chapterNumber || !actualBookName) { if (!bookName || !chapterNumber || !actualBookName) {