Skip to content

fix(web): derive isError from error in TopStatusBar#384

Merged
K1NGD4VID merged 5 commits into
mainfrom
fix/topstatusbar-iserror
Jul 13, 2026
Merged

fix(web): derive isError from error in TopStatusBar#384
K1NGD4VID merged 5 commits into
mainfrom
fix/topstatusbar-iserror

Conversation

@K1NGD4VID

Copy link
Copy Markdown
Contributor

useRecentEvents returns error (Error | null), not isError. Destructure error and derive isError from it. Was blocking next build on main.

🤖 Generated with Claude Code

K1NGD4VID and others added 5 commits July 13, 2026 08:07
Fixes TypeScript type error blocking `next build` on main. Same pattern as PR #379 for InvoiceForm.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The <path> element was receiving framer-motion props (initial/animate/transition), causing a TypeScript type error against SVGProps<SVGPathElement>. Switching to <motion.path> makes the props type-compatible. Fixes `next build` on main.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
useFocusTrap(showRegModal, ...) referenced showRegModal before its useState declaration. Moved the state hook above the useFocusTrap call to eliminate the temporal-dead-zone error blocking `next build`.

Partial fix for #269 (TDZ portion).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The hook was used without an import. Adds `import { useRecentEvents } from '@/hooks/useEvents'`. Was blocking `next build` on main.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
useRecentEvents returns error (Error | null), not isError. Destructure error and derive isError from it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
trustrove Error Error Jul 13, 2026 3:37pm

@K1NGD4VID
K1NGD4VID merged commit 48c1464 into main Jul 13, 2026
2 of 4 checks passed
@K1NGD4VID
K1NGD4VID deleted the fix/topstatusbar-iserror branch July 13, 2026 15:36
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