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.

Fix error message

Kiran K28bcd9a9675e
diff --git a/apps/web/lib/zod/schemas/commissions.ts b/apps/web/lib/zod/schemas/commissions.ts
index 147c882f64..7cf8af8034 100644
--- a/apps/web/lib/zod/schemas/commissions.ts
+++ b/apps/web/lib/zod/schemas/commissions.ts
@@ -577,7 +577,7 @@ export const createManualCommissionBodySchema = z
ctx.addIssue({
code: z.ZodIssueCode.custom,
message:
- "Description is required when creating a clawback (negative amount).",
+ "`description` is required when creating a clawback (negative amount).",
path: ["description"],
});
}
@@ -589,7 +589,8 @@ export const createManualCommissionBodySchema = z
if (!data.importStripeInvoices && data.saleAmount == null) {
ctx.addIssue({
code: z.ZodIssueCode.custom,
- message: "saleAmount is required when importStripeInvoices is false.",
+ message:
+ "`saleAmount` is required when `importStripeInvoices` is false.",
path: ["saleAmount"],
});
}
diff --git a/apps/web/playwright/api/clawbacks/clawbacks.spec.ts b/apps/web/playwright/api/clawbacks/clawbacks.spec.ts
index e36e29103a..a28158a260 100644
--- a/apps/web/playwright/api/clawbacks/clawbacks.spec.ts
+++ b/apps/web/playwright/api/clawbacks/clawbacks.spec.ts
@@ -171,7 +171,7 @@ const clawbackErrorCases = [
expected: apiError({
code: "unprocessable_entity",
message:
- "Description is required when creating a clawback (negative amount).",
+ "`description` is required when creating a clawback (negative amount).",
}),
},
];