From ef9b96e09555a9630cb2df76b365c3ab20278f6e Mon Sep 17 00:00:00 2001 From: mul53 Date: Thu, 8 Oct 2026 15:11:39 +0200 Subject: [PATCH] fix(layout): read currentModal from the deposit store to stop the Home 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 --- app/(protected)/_layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/(protected)/_layout.tsx b/app/(protected)/_layout.tsx index 92fb5d49..6f2c1224 100644 --- a/app/(protected)/_layout.tsx +++ b/app/(protected)/_layout.tsx @@ -67,7 +67,7 @@ export default function ProtectedLayout() { const isHomeReady = useWhatsNewStore(state => state.isHomeReady); const isWhatsNewVisible = useWhatsNewStore(state => state.isVisible); const isCardPaneOpen = useCardPaneStore(state => state.isOpen); - const depositModal = useDepositStore(state => state.modal); + const depositModal = useDepositStore(state => state.currentModal); const { visible: isNotificationReminderVisible, dismiss: dismissNotificationReminder } = useNotificationPermissionReminder( !!user &&