Skip to content

Fix build: remove duplicate coupon validation in bounty claim route#42

Merged
ralyodio merged 1 commit into
masterfrom
fix/bounty-claim-duplicate-coupon
Jul 12, 2026
Merged

Fix build: remove duplicate coupon validation in bounty claim route#42
ralyodio merged 1 commit into
masterfrom
fix/bounty-claim-duplicate-coupon

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

master is currently red. PR #40's merge duplicated the coupon store-match + reuse validation block in app/api/bounties/[id]/claim/route.ts, re-declaring const couponTS2451: Cannot redeclare block-scoped variable 'coupon' — which fails pnpm typecheck on every PR (surfaced on #41).

The first block already performs both checks, and more thoroughly (store-name text match for free-text bounties + reuse check that excludes the current bounty id). This removes the redundant second copy. Typecheck passes.

🤖 Generated with Claude Code

…build

PR #40's merge duplicated the coupon store-match + reuse validation,
re-declaring `const coupon` (TS2451) and breaking typecheck on master.
The first block already covers both checks more thoroughly (store-name
text match + reuse check excluding the current bounty), so drop the
redundant second copy.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

@ralyodio
ralyodio merged commit 2747dd7 into master Jul 12, 2026
5 checks passed
@ralyodio
ralyodio deleted the fix/bounty-claim-duplicate-coupon branch July 12, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant