Skip to content

Commit 9909b95

Browse files
empty string as a default value for textarea instead of null
1 parent 3aa7f7d commit 9909b95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/CreatePost.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const styles = theme => ({
5252
});
5353

5454
const defaultState = {
55-
text:null,
55+
text:"",
5656
createdAt:null,
5757
like:null
5858
};

0 commit comments

Comments
 (0)