From e8e0913f99cb9e505f8e94f8271ffbcedef4babb Mon Sep 17 00:00:00 2001 From: Christopher Cali Date: Tue, 19 Dec 2023 17:09:39 -0500 Subject: [PATCH] Remove unused method in auth.ts --- apps/mvp/src/composables/auth.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/mvp/src/composables/auth.ts b/apps/mvp/src/composables/auth.ts index 5ac93f07..5f8068f1 100644 --- a/apps/mvp/src/composables/auth.ts +++ b/apps/mvp/src/composables/auth.ts @@ -20,7 +20,7 @@ const { browserProvidersList, loginWithEthers } = useEthers() const { loginWithLedger } = useLedger() const { loginWithTrezor } = useTrezor() const { setUser, user } = useUser() -const { disconnectWalletConnect, loginWithWalletConnectV2, initializeWalletConnect, uninitializeWalletConnect } = useWalletConnect() +const { disconnectWalletConnect, loginWithWalletConnectV2, initializeWalletConnect } = useWalletConnect() const { detectActiveWalletAddress } = useWallets() const initializedAuthComposable = ref(false) @@ -132,9 +132,8 @@ export default function useAuth() { if (addressExistsOnUser) return "Address already exists on this account" // Check if it exists as a primary address of a different user - const { - data: { sameAddress, walletProvider }, - } = await checkIfPrimaryUserExists(provider as ProviderString, address) + const { data: { sameAddress } } = + await checkIfPrimaryUserExists(provider as ProviderString, address) // If yes, ask user if they want to add it as a secondary to this account or if they want to log in with that account if (sameAddress) { return "Address already exists as a primary address on another account"