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 K519514f13bdb
diff --git a/apps/web/ui/partners/add-edit-discount-sheet.tsx b/apps/web/ui/partners/add-edit-discount-sheet.tsx
index 5eb9103332..aa922991d1 100644
--- a/apps/web/ui/partners/add-edit-discount-sheet.tsx
+++ b/apps/web/ui/partners/add-edit-discount-sheet.tsx
@@ -87,19 +87,8 @@ function DiscountSheetContent({
},
});
- const [
- type,
- amount,
- includedPartnerIds = [],
- excludedPartnerIds = [],
- maxDuration,
- ] = watch([
- "type",
- "amount",
- "includedPartnerIds",
- "excludedPartnerIds",
- "maxDuration",
- ]);
+ const [type, amount, includedPartnerIds = [], excludedPartnerIds = []] =
+ watch(["type", "amount", "includedPartnerIds", "excludedPartnerIds"]);
const { data: discountPartners, loading: isLoadingDiscountPartners } =
useDiscountPartners({