Fix TypeScript compilation error - add explicit type annotation for prev parameter
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user