From 27dcc8f92f4e4be32755682a8eed43718f809338 Mon Sep 17 00:00:00 2001 From: Isaac Onyemaechi Date: Fri, 20 Mar 2026 14:00:02 +0100 Subject: [PATCH] fix: update migration modal visibility logic --- app/context/MigrationContext.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/context/MigrationContext.tsx b/app/context/MigrationContext.tsx index a0b60dbb..7b0368df 100644 --- a/app/context/MigrationContext.tsx +++ b/app/context/MigrationContext.tsx @@ -33,7 +33,8 @@ export const MigrationBannerWrapper = () => { // Fallback: covers page-reload when localStorage already has the key const dismissedViaStorage = hasSeenNetworkModal(walletAddress); - const canShowMigrationModal = isInjectedWallet || dismissedViaStore || dismissedViaStorage; + const canShowMigrationModal = + !isInjectedWallet && (dismissedViaStore || dismissedViaStorage); // Keep the last stable visibility while loading to avoid unmounting migration modals mid-flow. useEffect(() => {