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.

Update add-edit-discount-sheet.tsx

Kiran K9964f90c4fb4
diff --git a/apps/web/ui/partners/add-edit-discount-sheet.tsx b/apps/web/ui/partners/add-edit-discount-sheet.tsx
index 22bfad9f8b..e8cd664d7f 100644
--- a/apps/web/ui/partners/add-edit-discount-sheet.tsx
+++ b/apps/web/ui/partners/add-edit-discount-sheet.tsx
@@ -450,6 +450,7 @@ function DiscountSheetContent({
min: 0,
max: 100,
onChange: handleMoneyInputChange,
+ required: true,
})}
onKeyDown={handleMoneyKeyDown}
placeholder={"0"}
@@ -474,7 +475,9 @@ function DiscountSheetContent({
errors.couponId &&
"border-red-600 pr-7 focus:border-red-500 focus:ring-red-600",
)}
- {...register("couponId")}
+ {...register("couponId", {
+ required: true,
+ })}
/>
</div>