The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix comments
Steven Tey3ca97f98c0b1
diff --git a/packages/email/src/send-via-resend.ts b/packages/email/src/send-via-resend.tsindex fa4e8c796a..d6d1aa09c6 100644--- a/packages/email/src/send-via-resend.ts+++ b/packages/email/src/send-via-resend.ts@@ -20,8 +20,8 @@ const resendEmailForOptions = (tags,} = opts;- // Build base options without rendered outputs (react/html/text)- // CreateEmailOptions requires at least one of react, html, or text+ // Build base options without rendered outputs (react/text)+ // CreateEmailOptions requires at least one of react or textconst baseOptions = {to,from: from || VARIANT_TO_FROM_MAP[variant],@@ -42,15 +42,14 @@ const resendEmailForOptions = (: headers && { headers }),};- // Add render options (react, html, or text) - at least one must be present- // CreateEmailOptions requires at least one of react, html, or text+ // Add render options (react or text) - at least one must be presentif (react) {return { ...baseOptions, react };}if (text) {return { ...baseOptions, text };}- // If none of react, html, or text is provided, we need to ensure at least one is present+ // If none of react or text is provided, we need to ensure at least one is present// This shouldn't happen in practice, but we'll default to an empty textreturn { ...baseOptions, text: "" };};