GPT-5 finding
Comment and typing for searchParams in Receipts page are misleading; searchParams is not a Promise in Next.js App Router
lowdocs-gaphigh
- apps/web/app/receipts/page.tsx:32-41
In Next.js App Router, searchParams is provided as a plain object, not a Promise. Awaiting a non-Promise works in JS (await passes through), but the comment documents an incorrect contract and the Promise typing can mislead future changes or refactors.
Recommendation
Update the prop type to searchParams: SearchParams and remove the await. Fix the comment to describe the correct contract (plain object with string | string[] | undefined values).