Skip to content

Commit f6fc00b

Browse files
committed
Prevent adding empty entries to EntryInputContainer #2
1 parent a88f941 commit f6fc00b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

App/containers/EntryInputContainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default class EntryInputContainer extends Component {
2727
handleAdd(event) {
2828
event.preventDefault();
2929

30-
if (this.state.value === '') {
30+
if (this.state.value.trim() === '') {
3131
return;
3232
}
3333

0 commit comments

Comments
 (0)