From 895bb8ae4719e8dbe8b58d4e98e0175a4998fe1b Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 29 Aug 2024 11:49:04 -0700 Subject: [PATCH] Don't set inner HTML for text email content. It was a bad copy-paste from the HTML display. --- src/EmailContentText.tsx | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/EmailContentText.tsx b/src/EmailContentText.tsx index bdb1c78..ac9ef39 100644 --- a/src/EmailContentText.tsx +++ b/src/EmailContentText.tsx @@ -15,20 +15,13 @@ const EmailContentText: React.FC = (props) => { } return ( -
-				{email.textBody.map((t) =>
-					t.partId === undefined ? (
-						
-					) : (
-						
- ), - )} -
+ {email.textBody.map((t) => + t.partId === undefined ? ( +
undefined partId
+ ) : ( +
{email.bodyValues![t.partId].value}
+ ), + )}
); };