Skip to content

Commit

Permalink
Update null coalescing operator in getStaticProps()
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-Kwan committed Jan 10, 2024
1 parent 7a39907 commit 3cf1a82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ function Contact({ serviceId, templateId, publicKey }: ContactProps) {
}

export async function getStaticProps() {
const serviceId = process.env.EMAILJS_SERVICE_ID || null;
const templateId = process.env.EMAILJS_TEMPLATE_ID || null;
const publicKey = process.env.EMAILJS_PUBLIC_KEY || null;
const serviceId = process.env.EMAILJS_SERVICE_ID ?? null;
const templateId = process.env.EMAILJS_TEMPLATE_ID ?? null;
const publicKey = process.env.EMAILJS_PUBLIC_KEY ?? null;

return {
props: {
Expand Down

0 comments on commit 3cf1a82

Please sign in to comment.