From cb17ba30bacb44c353a1216481935904d5341245 Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Thu, 1 Aug 2024 12:33:53 +0530 Subject: [PATCH] Remove unnecessary function arguments --- src/components/Accounts.tsx | 1 - src/components/PairingModal.tsx | 4 +--- src/utils/wallet-connect/helpers.ts | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/Accounts.tsx b/src/components/Accounts.tsx index 29de844..a1c292c 100644 --- a/src/components/Accounts.tsx +++ b/src/components/Accounts.tsx @@ -60,7 +60,6 @@ const Accounts = () => { networksData, selectedNetwork!, accounts, - currentIndex, ); if (!updatedNamespaces) { diff --git a/src/components/PairingModal.tsx b/src/components/PairingModal.tsx index ec08b81..5fbec48 100644 --- a/src/components/PairingModal.tsx +++ b/src/components/PairingModal.tsx @@ -19,7 +19,7 @@ const PairingModal = ({ setModalVisible, setToastVisible, }: PairingModalProps) => { - const { accounts, currentIndex } = useAccounts(); + const { accounts } = useAccounts(); const { selectedNetwork, networksData } = useNetworks(); const [isLoading, setIsLoading] = useState(false); const [chainError, setChainError] = useState(''); @@ -101,7 +101,6 @@ const PairingModal = ({ networksData, selectedNetwork!, accounts, - currentIndex, ); setSupportedNamespaces(nameSpaces); } catch (err) { @@ -127,7 +126,6 @@ const PairingModal = ({ networksData, selectedNetwork, accounts, - currentIndex, setCurrentProposal, setModalVisible, web3wallet diff --git a/src/utils/wallet-connect/helpers.ts b/src/utils/wallet-connect/helpers.ts index 257aabf..034cd39 100644 --- a/src/utils/wallet-connect/helpers.ts +++ b/src/utils/wallet-connect/helpers.ts @@ -40,7 +40,6 @@ export const getNamespaces = async ( networksData: NetworksDataState[], selectedNetwork: NetworksDataState, accounts: Account[], - currentIndex: number, ) => { const namespaceChainId = `${selectedNetwork.namespace}:${selectedNetwork.chainId}`;