diff --git a/src/common/hooks/campaigns.ts b/src/common/hooks/campaigns.ts index 44af5eb46..1ff396d21 100644 --- a/src/common/hooks/campaigns.ts +++ b/src/common/hooks/campaigns.ts @@ -60,7 +60,7 @@ export function useCampaignAdminList() { export const useGetUserCampaigns = () => { const { data: session } = useSession() return useQuery( - [endpoints.campaign.getUserDonatedToCampaigns.url], + [endpoints.campaign.getUserCampaigns.url], authQueryFnFactory(session?.accessToken), ) } diff --git a/src/components/client/auth/profile/MyDonatedToCampaignsTable.tsx b/src/components/client/auth/profile/MyDonatedToCampaignsTable.tsx index 4a7374792..0dfda13c9 100644 --- a/src/components/client/auth/profile/MyDonatedToCampaignsTable.tsx +++ b/src/components/client/auth/profile/MyDonatedToCampaignsTable.tsx @@ -175,7 +175,6 @@ export default function MyDonatedToCampaignTable() { headerAlign: 'left', }, ] - console.log(data, 'dataaa') return ( <> {data.length !== 0 ? ( diff --git a/src/service/apiEndpoints.ts b/src/service/apiEndpoints.ts index 88fdec022..a1c387aa6 100644 --- a/src/service/apiEndpoints.ts +++ b/src/service/apiEndpoints.ts @@ -21,6 +21,10 @@ export const endpoints = { url: '/campaign/user-donations-campaigns', method: 'GET', }, + getUserCampaigns: { + url: '/campaign/get-user-campaigns', + method: 'GET', + }, createCampaign: { url: '/campaign/create-campaign', method: 'POST' }, canEditCampaign: (slug: string) => { url: `/campaign/${slug}/can-edit`, method: 'GET' },