Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update use-program-enrollments.ts

Tim Wilson67f4813c7d1f
diff --git a/apps/web/lib/swr/use-program-enrollments.ts b/apps/web/lib/swr/use-program-enrollments.ts
index 499f510a6d..8ccd8a0ca2 100644
--- a/apps/web/lib/swr/use-program-enrollments.ts
+++ b/apps/web/lib/swr/use-program-enrollments.ts
@@ -2,7 +2,7 @@ import { fetcher } from "@dub/utils";
import { useSession } from "next-auth/react";
import useSWR from "swr";
import { z } from "zod";
-import { PartnerProgramEnrollmentProps } from "../types";
+import { ProgramEnrollmentProps } from "../types";
import { partnerProfileProgramsQuerySchema } from "../zod/schemas/partner-profile";
export default function useProgramEnrollments(
@@ -12,7 +12,7 @@ export default function useProgramEnrollments(
const partnerId = session?.user?.["defaultPartnerId"];
const { data: programEnrollments, isLoading } = useSWR<
- PartnerProgramEnrollmentProps[]
+ ProgramEnrollmentProps[]
>(
partnerId &&
`/api/partner-profile/programs?${new URLSearchParams(