Skip to content

Commit

Permalink
updated with main
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Kochar committed Dec 12, 2024
1 parent 7cc57d1 commit 5c3ab4d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ function validate(payload: Payload) {
}
})

if (typeof payload.cc === 'object' && Object.keys(payload.cc).length === 0) {
if(typeof payload.cc === 'object' && Object.keys(payload.cc).length === 0){
delete payload.cc
}

if (typeof payload.bcc === 'object' && Object.keys(payload.bcc).length === 0) {
if(typeof payload.bcc === 'object' && Object.keys(payload.bcc).length === 0){
delete payload.bcc
}

Expand All @@ -134,4 +134,4 @@ function validate(payload: Payload) {
}

return
}
}

0 comments on commit 5c3ab4d

Please sign in to comment.