Compare commits

..

1 commit

Author SHA1 Message Date
Benjamin Palko
462cd5483a check for undefined
Some checks failed
PR Gate / Checks (pull_request) Failing after 39s
2026-08-11 20:46:35 -04:00

View file

@ -17,7 +17,7 @@ export async function sendContactMessage(name: string, email: string, message: s
form.append('content', content); form.append('content', content);
if (!env.DISCORD_CONTACT_WEBHOOK) { if (!env.DISCORD_CONTACT_WEBHOOK) {
throw new Error('Undefined discord webhook'); return;
} }
const url = new URL(env.DISCORD_CONTACT_WEBHOOK); const url = new URL(env.DISCORD_CONTACT_WEBHOOK);