diff --git a/public/locales/en/common.json b/public/locales/en/common.json index bd7ccd20..47fe4dd8 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -7,6 +7,7 @@ "tree_other": "trees", "recipientName": "Recipient Name", "recipientNameRequired": "Recipient Name is required", + "recipientNameTooLong": "Recipient Name must be 35 characters or less", "email": "Email", "recipientEmail": "Recipient Email", "emailRequired": "Email is required", diff --git a/src/Donations/Micros/GiftForm.tsx b/src/Donations/Micros/GiftForm.tsx index 79227df6..b1c31dc6 100644 --- a/src/Donations/Micros/GiftForm.tsx +++ b/src/Donations/Micros/GiftForm.tsx @@ -91,7 +91,16 @@ export default function GiftForm(): ReactElement { ( )} /> - {errors.recipientName && ( + {errors.recipientName !== undefined && (
- {t("recipientNameRequired")} + {errors.recipientName.message}
)}