fix: only allow sending email if to is set
This commit is contained in:
parent
7b108f945d
commit
c4a1abb6b9
@ -175,7 +175,11 @@ const commentEmpty = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const emailEmpty = computed(() => {
|
const emailEmpty = computed(() => {
|
||||||
return !newEmail.value || newEmail.value === '<p></p>'
|
return (
|
||||||
|
!newEmail.value ||
|
||||||
|
newEmail.value === '<p></p>' ||
|
||||||
|
!newEmailEditor.value?.toEmails?.length
|
||||||
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
async function sendMail() {
|
async function sendMail() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user