Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove use of
useLoans
and useReservations
in useReaderPlayer
The use of `useLoans` and `useReservations` caused unexpected behavior, where the FBS API was called, leading to Cypress test failures. I was unable to get `enabled: !isUserAnonymous` to work properly with the FBS API. However, I believe it is also preferable to call Publizon directly from `useReaderPlayer`, as FBS materials are not relevant in this context. Before this change, I temporarily fixed the Cypress test by adding fixtures for: `cy.intercept("GET", "**/external/agencyid/patrons/patronid/loans/v2", {`inside src/components/reservation/reservation.test.ts.
- Loading branch information