This commit is contained in:
Timothy Jaeryang Baek 2025-09-28 12:26:13 -05:00
parent 97dae432ab
commit 3aad157006
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@
}; };
const editMessageConfirmHandler = async (submit = true) => { const editMessageConfirmHandler = async (submit = true) => {
if (!editedContent && editedFiles.length === 0) { if (!editedContent && (editedFiles ?? []).length === 0) {
toast.error($i18n.t('Please enter a message or attach a file.')); toast.error($i18n.t('Please enter a message or attach a file.'));
return; return;
} }