Skip to content

[FRONTEND] Join tournament page uses fake setTimeout payment and ignores URL param #321

@Hydrax117

Description

@Hydrax117

File: src/app/tournaments/[id]/join/page.tsx
Priority: Major
Type: Bug / Missing Feature

Description:
Two problems exist: (1) handlePayAndJoin simulates payment with a setTimeout and a toast — no real payment gateway is called. (2) params.id is read but only used as a fallback default value; the page always shows the same hardcoded tournament regardless of which ID is in the URL.

Acceptance criteria:

  • Tournament data is fetched/looked up using params.id
  • Paid tournaments integrate with the real payment gateway
  • Team assignment is persisted (API call or at minimum stored in state that survives navigation)
  • Loading and error states are handled

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions