fix: only init WalletConnect when a saved session exists

This commit is contained in:
2026-02-22 22:31:52 +03:00
parent 0f2ed1c14f
commit 73b5ebece6
+3 -2
View File
@@ -325,8 +325,9 @@ export const PezkuwiProvider: React.FC<PezkuwiProviderProps> = ({
} }
} }
// Try to restore WalletConnect session first // Try to restore WalletConnect session only if one was previously saved
try { const savedWcTopic = localStorage.getItem('wc_session_topic');
if (savedWcTopic) try {
const wcSession = await restoreSession(); const wcSession = await restoreSession();
if (wcSession) { if (wcSession) {
const wcAddresses = getSessionAccounts(); const wcAddresses = getSessionAccounts();