GPT-5 finding
Redundant conditional in href computation reduces readability
lowmaintainabilityhigh
- apps/web/app/activity/ActivityView.tsx
The nested conditional returns the same expression in both branches, which obscures intent and risks confusion during future modifications.
Recommendation
Simplify to: const href = event.kind === 'review_completed' ? null : `/receipts/${encodeURIComponent(event.findingId)}`;