The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix ts error
Steven Tey814bde10d84c
diff --git a/apps/web/app/app.dub.co/embed/referrals/utils.ts b/apps/web/app/app.dub.co/embed/referrals/utils.tsindex 55b937c617..eb56a45f18 100644--- a/apps/web/app/app.dub.co/embed/referrals/utils.ts+++ b/apps/web/app/app.dub.co/embed/referrals/utils.ts@@ -1,6 +1,7 @@import { referralsEmbedToken } from "@/lib/embed/referrals/token-class";import { determinePartnerDiscount } from "@/lib/partners/determine-partner-discount";import { determinePartnerRewards } from "@/lib/partners/determine-partner-rewards";+import { RewardProps } from "@/lib/types";import { prisma } from "@dub/prisma";import { notFound } from "next/navigation";@@ -56,7 +57,7 @@ export const getReferralsEmbedData = async (token: string) => {return {program,links,- rewards,+ rewards: rewards as RewardProps[],discount,payouts: payouts.map((payout) => ({status: payout.status,