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 payout-invoice-sheet.tsx

Kiran K5f315a8f6136
diff --git a/apps/web/ui/partners/payout-invoice-sheet.tsx b/apps/web/ui/partners/payout-invoice-sheet.tsx
index ad6c2bd145..4bec2dfd65 100644
--- a/apps/web/ui/partners/payout-invoice-sheet.tsx
+++ b/apps/web/ui/partners/payout-invoice-sheet.tsx
@@ -149,10 +149,6 @@ function PayoutInvoiceSheetContent({ setIsOpen }: PayoutInvoiceSheetProps) {
[paymentMethods],
);
- const amount =
- eligiblePayoutsCount?.find((p) => p.status === PayoutStatus.pending)
- ?.amount ?? 0;
-
const invoiceData = useMemo(() => {
if (eligiblePayoutsCountLoading) {
return {
@@ -393,10 +389,7 @@ function PayoutInvoiceSheetContent({ setIsOpen }: PayoutInvoiceSheetProps) {
excludeCurrentMonth,
});
}}
- text={`Confirm ${currencyFormatter(amount / 100, {
- minimumFractionDigits: 2,
- maximumFractionDigits: 2,
- })} payout`}
+ text={`Confirm ${invoiceData.Amount} payout`}
/>
</div>
</div>