From 73b5ebece6e25d7c5ec604b6497b37742a65dd36 Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Sun, 22 Feb 2026 22:31:52 +0300 Subject: [PATCH] fix: only init WalletConnect when a saved session exists --- web/src/contexts/PezkuwiContext.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/contexts/PezkuwiContext.tsx b/web/src/contexts/PezkuwiContext.tsx index 885052bd..88833167 100644 --- a/web/src/contexts/PezkuwiContext.tsx +++ b/web/src/contexts/PezkuwiContext.tsx @@ -325,8 +325,9 @@ export const PezkuwiProvider: React.FC = ({ } } - // Try to restore WalletConnect session first - try { + // Try to restore WalletConnect session only if one was previously saved + const savedWcTopic = localStorage.getItem('wc_session_topic'); + if (savedWcTopic) try { const wcSession = await restoreSession(); if (wcSession) { const wcAddresses = getSessionAccounts();