2
0

🚸 (sendEmail) Improve variable parsing in sendEmail body

Support for multi line variables as well

Closes #749
This commit is contained in:
Baptiste Arnaud
2023-09-01 11:33:45 +02:00
parent 6a0f6e4ef2
commit 37ccb5da5e
5 changed files with 45 additions and 23 deletions

View File

@@ -32,6 +32,13 @@ export const DefaultBotNotificationEmail = ({
<b>{key}</b>:{' '}
{isEmail ? (
<a href={`mailto:${answers[key]}`}>{answers[key]}</a>
) : answers[key].includes('\n') ? (
answers[key].split('\n').map((line) => (
<>
{line}
<br />
</>
))
) : (
answers[key]
)}