From 9ced0d96adca51b68dc574b396d9bd659cc391c1 Mon Sep 17 00:00:00 2001 From: naskya Date: Mon, 22 Apr 2024 07:20:07 +0900 Subject: [PATCH] chore (client): don't make a new post as soon as you add descriptions --- packages/client/src/components/MkPostForm.vue | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/packages/client/src/components/MkPostForm.vue b/packages/client/src/components/MkPostForm.vue index e7ec45a37b..5850fdf498 100644 --- a/packages/client/src/components/MkPostForm.vue +++ b/packages/client/src/components/MkPostForm.vue @@ -1113,12 +1113,7 @@ async function post() { } } isFirstPostAttempt = false; - // Continue if all files have alt-text added. - if ( - files.value.some((f) => f.comment == null || f.comment.length === 0) - ) { - return; - } + return; } } @@ -1144,12 +1139,7 @@ async function post() { } } } - // Continue if all files have alt-text added. - if ( - files.value.some((f) => f.comment == null || f.comment.length === 0) - ) { - return; - } + return; } }