diff --git a/helpers/mail.js b/helpers/mail.js index b2ee7f4..88d98a2 100644 --- a/helpers/mail.js +++ b/helpers/mail.js @@ -23,7 +23,7 @@ async function sendMail(data) { } const response = await fetch(SENDGRID_URL, fetchOptions) - if (!repsonse.ok) { + if (!response.ok) { throw new Error( `Failed to send booking ${data._id} to booking admin with status ${response.status}: ${response.statusText}` )