From f3919d2076a11f84f9e800fc21f3d8572a0bc5df Mon Sep 17 00:00:00 2001 From: Nathan_akin <85641756+akintewe@users.noreply.github.com> Date: Fri, 29 Nov 2024 14:57:52 +0100 Subject: [PATCH] made changes --- .../hooks/api/indexer/useMyTokensCreated.ts | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/apps/mobile/src/hooks/api/indexer/useMyTokensCreated.ts b/apps/mobile/src/hooks/api/indexer/useMyTokensCreated.ts index ffa275a8..a66fc559 100644 --- a/apps/mobile/src/hooks/api/indexer/useMyTokensCreated.ts +++ b/apps/mobile/src/hooks/api/indexer/useMyTokensCreated.ts @@ -1,28 +1,7 @@ import {useQuery} from '@tanstack/react-query'; import {ApiIndexerInstance} from '../../../services/api'; -import {useEffect} from 'react'; - -// Add this function to test the connection -const testEndpoint = async () => { - try { - console.log('Testing username-claimed endpoint...'); - const res = await fetch('https://afk-monorepo.onrender.com/username-claimed'); - console.log('Response status:', res.status); - const data = await res.json(); - console.log('Response data:', data); - return data; - } catch (error) { - console.error('Endpoint test failed:', error); - throw error; - } -}; export const useMyTokensCreated = (launch?: string) => { - // Add the test call - useEffect(() => { - testEndpoint(); - }, []); - return useQuery({ queryKey: launch ? ['token', launch] : ['deploy_launch'], queryFn: async () => {