Description
In src/app/(app)/reading/page.tsx, the updateBook function only updates UI if res.ok but doesn't show an error toast on failure. The user gets no feedback when an update silently fails.
Fix
Add else { toast.error("Failed to update") } branch.
Description
In
src/app/(app)/reading/page.tsx, theupdateBookfunction only updates UI ifres.okbut doesn't show an error toast on failure. The user gets no feedback when an update silently fails.Fix
Add
else { toast.error("Failed to update") }branch.