From dbcfed6dc3eb0b5d93a50747cf3cb7e02fcb15d2 Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Sun, 22 Feb 2026 19:28:20 +0300 Subject: [PATCH] fix: remove unused imports and add missing dependency --- web/src/contexts/PezkuwiContext.tsx | 2 -- web/src/contexts/WalletContext.tsx | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/web/src/contexts/PezkuwiContext.tsx b/web/src/contexts/PezkuwiContext.tsx index 4c64f223..0a411d5b 100644 --- a/web/src/contexts/PezkuwiContext.tsx +++ b/web/src/contexts/PezkuwiContext.tsx @@ -33,8 +33,6 @@ import { getSessionPeerName, restoreSession, disconnectWC, - isWCConnected, - createWCSigner, } from '@/lib/walletconnect-service'; // Get network config from shared endpoints diff --git a/web/src/contexts/WalletContext.tsx b/web/src/contexts/WalletContext.tsx index 8b0d0789..2b9c99fd 100644 --- a/web/src/contexts/WalletContext.tsx +++ b/web/src/contexts/WalletContext.tsx @@ -285,7 +285,7 @@ export const WalletProvider: React.FC<{ children: React.ReactNode }> = ({ childr if (import.meta.env.DEV) console.error('Transaction failed:', error); throw new Error(error instanceof Error ? error.message : WALLET_ERRORS.TRANSACTION_FAILED); } - }, [pezkuwi.api, pezkuwi.selectedAccount]); + }, [pezkuwi.api, pezkuwi.selectedAccount, pezkuwi.walletSource]); // Sign message const signMessage = useCallback(async (message: string): Promise => {