Skip to content

Commit b557f1f

Browse files
committed
solution: disable tweet when no text
1 parent 3b2d2f6 commit b557f1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/MessageForm/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const MessageForm = ({ user }) => {
3838
variant="primary"
3939
type="submit"
4040
role="tweet"
41-
/* TODO: disable button if no text */
41+
disabled={text.length < 1}
4242
>
4343
Tweet
4444
</Button>

0 commit comments

Comments
 (0)