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.

Match already-approved error in approve tests and fix comment

Kiran K214182c7d8e2
diff --git a/apps/web/lib/program-applications/approve-program-application.ts b/apps/web/lib/program-applications/approve-program-application.ts
index adbb09e807..149f3881ef 100644
--- a/apps/web/lib/program-applications/approve-program-application.ts
+++ b/apps/web/lib/program-applications/approve-program-application.ts
@@ -104,7 +104,7 @@ export async function approveProgramApplication({
});
if (!programApplication) {
- // When a specific application ID is provided
+ // No application ID was provided and the partner has no pending application
if (requirePendingApplication) {
throw new DubApiError({
code: "bad_request",
diff --git a/apps/web/playwright/api/program-applications/program-applications-review.spec.ts b/apps/web/playwright/api/program-applications/program-applications-review.spec.ts
index 540aedb476..5cfde3894c 100644
--- a/apps/web/playwright/api/program-applications/program-applications-review.spec.ts
+++ b/apps/web/playwright/api/program-applications/program-applications-review.spec.ts
@@ -275,7 +275,7 @@ test.describe("program application reviews", () => {
apiError({
code: "bad_request",
message:
- "This enrollment cannot be approved because it is already approved.",
+ "This application cannot be approved because it is already approved.",
}),
);
@@ -389,7 +389,7 @@ test.describe("program application reviews", () => {
apiError({
code: "bad_request",
message:
- "This enrollment cannot be approved because it is already approved.",
+ "This application cannot be approved because it is already approved.",
}),
);