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 partner-payout-confirmed.tsx

Steven Tey7df0e089eb4e
diff --git a/packages/email/src/templates/partner-payout-confirmed.tsx b/packages/email/src/templates/partner-payout-confirmed.tsx
index d86a65f302..648be8ecd5 100644
--- a/packages/email/src/templates/partner-payout-confirmed.tsx
+++ b/packages/email/src/templates/partner-payout-confirmed.tsx
@@ -12,7 +12,6 @@ import {
Tailwind,
Text,
} from "@react-email/components";
-import { addBusinessDays } from "date-fns";
import { Footer } from "../components/footer";
import { PartnerPayoutMethod } from "../types";
@@ -137,15 +136,10 @@ export default function PartnerPayoutConfirmed({
(excluding weekends and public holidays).
</Text>
- {payout.initiatedAt && (
+ {payout.payoutMethod === "connect" && (
<Text className="text-sm leading-6 text-neutral-600">
- <span className="text-sm text-neutral-500">
- Estimated arrival date:{" "}
- <strong className="text-black">
- {formatDate(addBusinessDays(payout.initiatedAt, etaDays))}
- </strong>
- .
- </span>
+ After it has been processed, it will be sent to your bank
+ account.
</Text>
)}