Skip to content

Resale listings fetch has no error handling #9

Description

@presidojay1

The useEffect does apiFetch<ResaleListing[]>('/tickets/resale').then(setListings).finally(...) with no .catch. A failed request throws an unhandled promise rejection and the UI silently falls back to "No tickets are listed for resale right now," which is misleading — it looks like an empty marketplace instead of a broken request.

Suggested fix: Add a .catch((err) => setError(...)) handler before .finally so a failed load shows a real error message.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions