Skip to content

Commit

Permalink
fix: disable create post button when editor is empty or timeline not …
Browse files Browse the repository at this point in the history
…selected (#1876)

Update PostCreate.tsx
  • Loading branch information
RiXelanya authored Jul 13, 2023
1 parent e92b421 commit 2409438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PostCreate/PostCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ export const PostCreate: React.FC<PostCreateProps> = props => {
<ShowIf condition={!showExclusive}>
<ShowIf condition={post.visibility !== 'selected_user'}>
<Button
disabled={editorValue === ''}
disabled={editorValue === '' || timelineId.length === 0}
variant="contained"
color="primary"
size="small"
Expand Down

0 comments on commit 2409438

Please sign in to comment.