diff --git a/api/src/index.js b/api/src/index.js index 90c077c70..7627b36e5 100644 --- a/api/src/index.js +++ b/api/src/index.js @@ -119,9 +119,9 @@ app.post('/submission', async (req, res) => { personalisation: { name: name, email: email, - message: message, - learnMore: learnMore, - familiarityGCDS: familiarityGCDS, + message: message ? message : '', + learnMore: learnMore ? learnMore : '', + familiarityGCDS: familiarityGCDS ? familiarityGCDS : '', }, });