Fix for Random Story Function
This commit is contained in:
@@ -169,8 +169,8 @@ export default function LibraryPage() {
|
||||
return;
|
||||
}
|
||||
|
||||
// Navigate to the random story's reading page
|
||||
router.push(`/stories/${randomStory.id}/read`);
|
||||
// Navigate to the random story's detail page
|
||||
router.push(`/stories/${randomStory.id}`);
|
||||
|
||||
} catch (error) {
|
||||
console.error('Failed to get random story:', error);
|
||||
|
||||
Reference in New Issue
Block a user