Enable image-only posts

This commit is contained in:
Paul Frazee
2022-12-19 18:51:13 -06:00
parent f0b30e26d4
commit e8bb545023
4 changed files with 47 additions and 30 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ export const ComposePost = observer(function ComposePost({
return
}
setError('')
if (text.trim().length === 0) {
if (text.trim().length === 0 && selectedPhotos.length === 0) {
setError('Did you want to say anything?')
return false
}