The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Tweak reset logic
Tim Wilson28d5c82745a9
diff --git a/apps/web/ui/partners/design/modals/edit-rewards-modal.tsx b/apps/web/ui/partners/design/modals/edit-rewards-modal.tsxindex 6a4cfd40e8..86ea0025c9 100644--- a/apps/web/ui/partners/design/modals/edit-rewards-modal.tsx+++ b/apps/web/ui/partners/design/modals/edit-rewards-modal.tsx@@ -241,18 +241,9 @@ function EditRewardsModalInner({type="button"className="px-2 text-xs font-medium text-neutral-700 transition-colors hover:text-neutral-950"onClick={() => {- setValue(- "landerData.rewards",- {- saleRewardId: "none",- leadRewardId: "none",- clickRewardId: "none",- discountId: "none",- },- {- shouldDirty: true,- },- );+ setValue("landerData.rewards", undefined, {+ shouldDirty: true,+ });setDefaultRewards(true);setDefaultDiscount(true);}}