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.

attemptCount condition

Pedro Ladeira828767f5eed8
diff --git a/packages/email/src/templates/failed-payment.tsx b/packages/email/src/templates/failed-payment.tsx
index e4f1088248..b9edba5461 100644
--- a/packages/email/src/templates/failed-payment.tsx
+++ b/packages/email/src/templates/failed-payment.tsx
@@ -61,8 +61,9 @@ export default function FailedPayment({
<Img src={DUB_WORDMARK} height="32" alt="Dub" />
</Section>
<Heading className="mx-0 my-7 p-0 text-lg font-medium text-black">
- {attemptCount == 2 ? "2nd " : attemptCount == 3 ? "3rd " : ""}
- Failed Payment for Dub
+ {attemptCount == 2 || attemptCount == 3
+ ? `${attemptCount == 2 ? "2nd" : "3rd"} payment attempt failed`
+ : "Failed Payment for Dub"}
</Heading>
<Text className="text-sm leading-6 text-black">
Hey{user.name ? ` ${user.name}` : ""},