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 K4d66307772fd
diff --git a/apps/web/ui/partners/add-edit-discount-sheet.tsx b/apps/web/ui/partners/add-edit-discount-sheet.tsx
index e6bf9269d1..4da118f616 100644
--- a/apps/web/ui/partners/add-edit-discount-sheet.tsx
+++ b/apps/web/ui/partners/add-edit-discount-sheet.tsx
@@ -671,10 +671,8 @@ function DiscountSheetContent({
variant="primary"
text={discount ? "Update discount" : "Create discount"}
className="w-fit"
- loading={isCreating || isUpdating}
- disabled={
- amount == null || isDeleting || isCreating || isUpdating
- }
+ loading={isCreating || isUpdating || isDeleting}
+ disabled={!discount && amount == null}
/>
</div>
</div>