Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix
Marc Seitz35654438aaf2
diff --git a/lib/dub.ts b/lib/dub.tsindex e8188f38..c0e172a0 100644--- a/lib/dub.ts+++ b/lib/dub.ts@@ -10,7 +10,7 @@ export async function getDubDiscountForExternalUserId(externalId: string) {externalId,includeExpandedFields: true,});- const first = customers.result[0];+ const first = customers[0];const couponId =process.env.NODE_ENV !== "production" && first?.discount?.couponTestId? first.discount.couponTestId