fix: character count should includes spoiler text (#1535)
* fix: character count should includes spoiler text * fix: draft empty conditions exclude spoiler text
This commit is contained in:
parent
04c4ff5225
commit
2bd8dc2dd5
3 changed files with 17 additions and 3 deletions
|
@ -89,7 +89,6 @@ export const isEmptyDraft = (draft: Draft | null | undefined) => {
|
|||
|
||||
return (text.length === 0)
|
||||
&& attachments.length === 0
|
||||
&& (params.spoilerText || '').length === 0
|
||||
}
|
||||
|
||||
export interface UseDraft {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue