From c4a1abb6b9d276ad6bc889c0fc5af4dd0b5593a3 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Sat, 22 Mar 2025 15:46:34 +0530 Subject: [PATCH] fix: only allow sending email if to is set --- frontend/src/components/CommunicationArea.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/CommunicationArea.vue b/frontend/src/components/CommunicationArea.vue index d262a3de..008c54e5 100644 --- a/frontend/src/components/CommunicationArea.vue +++ b/frontend/src/components/CommunicationArea.vue @@ -175,7 +175,11 @@ const commentEmpty = computed(() => { }) const emailEmpty = computed(() => { - return !newEmail.value || newEmail.value === '

' + return ( + !newEmail.value || + newEmail.value === '

' || + !newEmailEditor.value?.toEmails?.length + ) }) async function sendMail() {