The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Support 100% reward (#3060)
Steven Tey3ce3eae18b99
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/program-payout-settings-modal.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/program-payout-settings-modal.tsxindex 1b7c698237..6f523c0060 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/program-payout-settings-modal.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/program-payout-settings-modal.tsx@@ -113,7 +113,7 @@ function ProgramPayoutSettingsModalInner({Payout holding period</h4><p className="text-sm font-medium text-neutral-500">- Set how long to hold funds before they can be withdrawn.+ Set how long to hold funds before they are eligible for payout.</p></div><div>@@ -139,7 +139,8 @@ function ProgramPayoutSettingsModalInner({Minimum payout amount</h4><p className="text-sm font-medium text-neutral-500">- Set the minimum amount required for payouts to be processed.+ Set the minimum amount required for funds to be eligible for+ payout.</p></div>diff --git a/apps/web/lib/zod/schemas/rewards.ts b/apps/web/lib/zod/schemas/rewards.tsindex 263827700a..2a9fdb857e 100644--- a/apps/web/lib/zod/schemas/rewards.ts+++ b/apps/web/lib/zod/schemas/rewards.ts@@ -132,8 +132,8 @@ export const rewardConditionSchema = z.object({export const PERCENTAGE_REWARD_AMOUNT_SCHEMA = z.number().min(0, { message: "Reward percentage amount cannot be less than 0%" })- .max(99.99, {- message: "Reward percentage amount cannot be greater than 99.99%",+ .max(100, {+ message: "Reward percentage amount cannot be greater than 100%",});export const FLAT_REWARD_AMOUNT_SCHEMA = zdiff --git a/packages/prisma/schema/reward.prisma b/packages/prisma/schema/reward.prismaindex bb4b029c9e..aefb524391 100644--- a/packages/prisma/schema/reward.prisma+++ b/packages/prisma/schema/reward.prisma@@ -16,7 +16,7 @@ model Reward {event EventTypetype RewardStructure @default(percentage)amountInCents Int?- amountInPercentage Decimal? @db.Decimal(4, 2)+ amountInPercentage Decimal? @db.Decimal(5, 2)amount Int @default(0) // TODO: Remove after migrationmaxDuration Int? // in months (0 -> not recurring, null -> infinite)modifiers Json? @db.Json