Skip to content

fix(layout): stop the Home crash from the push-reminder gate - #2671

Merged
MusabShakeel576 merged 1 commit into
masterfrom
claude/fix-home-crash-deposit-modal
Oct 8, 2026
Merged

MusabShakeel576 merged 1 commit into
masterfrom
claude/fix-home-crash-deposit-modal

Conversation

@mul53

@mul53 mul53 commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Since #2669 shipped, signed-in users see "Oops, something went wrong" on Home (web and native via the OTA update).

The push-reminder gate in app/(protected)/_layout.tsx reads useDepositStore(state => state.modal), but DepositState has no modal field (it is currentModal). depositModal is therefore always undefined, and once the user is on a settled Home screen with nothing else open, depositModal.name throws TypeError: Cannot read properties of undefined (reading 'name'). The throw happens in the layout itself, before the hook's web check, so web crashes too.

Fix

Read state.currentModal.

Verification

  • npx tsc --noEmit on master reports TS2339: Property 'modal' does not exist on type 'DepositState' at _layout.tsx:70; with this change that error is gone. The 8 remaining errors are pre-existing and in unrelated files.
  • CI did not catch this because the tsc --noEmit step in .github/workflows/lint.yml is commented out.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

…e crash

The push-reminder gate added in #2669 read `state.modal`, which does not
exist on DepositState, so `depositModal` was always undefined. Once a
signed-in user reached a settled Home screen, `depositModal.name` threw
and the error boundary replaced the page on web and native.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

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

2 Skipped Deployments
Project Deployment Actions Updated
solid-app Ignored Ignored Oct 8, 2026 1:12pm UTC
solid-app-staging Ignored Ignored Oct 8, 2026 1:12pm UTC

Request Review

@MusabShakeel576
MusabShakeel576 merged commit 0ac66fc into master Oct 8, 2026
5 checks passed
@claude

claude Bot commented Oct 8, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

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.

2 participants