diff --git a/packages/form-handlers/src/shared.ts b/packages/form-handlers/src/shared.ts index 24560ee6ad1f..8520a9c562e6 100644 --- a/packages/form-handlers/src/shared.ts +++ b/packages/form-handlers/src/shared.ts @@ -43,6 +43,9 @@ export const formToEmail = ({ html += ""; for (const [key, value] of formData) { + if (typeof value !== "string") { + continue; + } html += ``; txt += `${key}: ${value}\n`; }
${key}:${value}