Skip to content

Check-in/revoke buttons fail silently when staff wallet isn't connected #18

Description

@presidojay1

handleCheckIn and handleRevoke both start with if (!result || !user?.stellarPublicKey) return; and give no feedback. Every other wallet-gated action in the app sets a visible error like "Connect your wallet before…" in this situation; here, clicking "Check in" or "Revoke" without a connected wallet just does nothing, which looks like a broken button.

Suggested fix: Before the early return, call setError('Connect your wallet before checking in or revoking tickets.') in both handlers, matching the pattern used elsewhere in the app.

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