fix: only init WalletConnect when a saved session exists

This commit is contained in:
2026-02-22 22:31:52 +03:00
parent e593f5e4bb
commit 87f6d0471e
+3 -2
View File
@@ -325,8 +325,9 @@ export const PezkuwiProvider: React.FC<PezkuwiProviderProps> = ({
}
}
// 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();