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 get-program-enrollment-or-throw.ts

Steven Tey396f51f0c4fe
diff --git a/apps/web/lib/api/programs/get-program-enrollment-or-throw.ts b/apps/web/lib/api/programs/get-program-enrollment-or-throw.ts
index f74bb13528..8799b6574f 100644
--- a/apps/web/lib/api/programs/get-program-enrollment-or-throw.ts
+++ b/apps/web/lib/api/programs/get-program-enrollment-or-throw.ts
@@ -71,15 +71,5 @@ export async function getProgramEnrollmentOrThrow({
});
}
- const { links } = programEnrollment;
-
- if (!links) {
- throw new DubApiError({
- code: "not_found",
- message:
- "You don't have a link for this program yet. Contact your program admin to get one.",
- });
- }
-
return programEnrollment;
}