Skip to content

Commit

Permalink
refactor(ContactUs): contactBody에서 OR연산자를 Nullish연산자로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Hain-tain committed Dec 23, 2024
1 parent a51f056 commit de23b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/ContactUs/ContactUs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const ContactUs = () => {
setIsSending(true);
toggleModal();

const contactBody = { message, email: email || null, name: name || null, memberId: memberId || null };
const contactBody = { message, email: email || null, name: name ?? null, memberId: memberId ?? null };

try {
await postContact(contactBody);
Expand Down

0 comments on commit de23b85

Please sign in to comment.