Skip to content

Commit c88fdad

Browse files
committed
Don't check for empty text when handleChange
1 parent 2a366c3 commit c88fdad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/large/TodoApp.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class TodoApp extends React.Component {
3333

3434
async handleChange(event) {
3535
const text = await event.target.value;
36-
if (text !== "") this.setState({ text: text });
36+
this.setState({ text: text });
3737
}
3838

3939
async handleSubmit(event) {

0 commit comments

Comments
 (0)